Share via


IVsContainedLanguageStaticEventBinding.GetStaticEventBindingsForObject Method

Returns a collection of events that are statically handled.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Function GetStaticEventBindingsForObject ( _
    pszClassName As String, _
    pszObjectName As String, _
    <OutAttribute> ByRef pcMembers As Integer, _
    <OutAttribute> ByRef ppbstrEventNames As IntPtr, _
    <OutAttribute> ByRef ppbstrDisplayNames As IntPtr, _
    <OutAttribute> ByRef ppbstrMemberIDs As IntPtr _
) As Integer
int GetStaticEventBindingsForObject(
    string pszClassName,
    string pszObjectName,
    out int pcMembers,
    out IntPtr ppbstrEventNames,
    out IntPtr ppbstrDisplayNames,
    out IntPtr ppbstrMemberIDs
)
int GetStaticEventBindingsForObject(
    [InAttribute] String^ pszClassName, 
    [InAttribute] String^ pszObjectName, 
    [OutAttribute] int% pcMembers, 
    [OutAttribute] IntPtr% ppbstrEventNames, 
    [OutAttribute] IntPtr% ppbstrDisplayNames, 
    [OutAttribute] IntPtr% ppbstrMemberIDs
)
abstract GetStaticEventBindingsForObject : 
        pszClassName:string * 
        pszObjectName:string * 
        pcMembers:int byref * 
        ppbstrEventNames:IntPtr byref * 
        ppbstrDisplayNames:IntPtr byref * 
        ppbstrMemberIDs:IntPtr byref -> int 
function GetStaticEventBindingsForObject(
    pszClassName : String, 
    pszObjectName : String, 
    pcMembers : int, 
    ppbstrEventNames : IntPtr, 
    ppbstrDisplayNames : IntPtr, 
    ppbstrMemberIDs : IntPtr
) : int

Parameters

  • pszClassName
    Type: System.String
    [in] The fully qualified name of the class.
  • pszObjectName
    Type: System.String
    [in] The fully qualified name of the object that contains the event.
  • pcMembers
    Type: System.Int32%
    [out] Returns the number of event handlers specified in the lists returned in the ppbstrEventNames, ppbstrDisplayNames, and ppbstrMemberIDs parameters.
  • ppbstrEventNames
    Type: System.IntPtr%
    [out] Returns a list containing the event handler names.
  • ppbstrDisplayNames
    Type: System.IntPtr%
    [out] Returns a list containing the display names for the event handlers.
  • ppbstrMemberIDs
    Type: System.IntPtr%
    [out] Returns a list containing the event member IDs.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT GetStaticEventBindingsForObject(
   [in]  LPCWSTR pszClassName,
   [in]  LPCWSTR pszObjectName,
   [out] int*    pcMembers,
   [out] BSTR**  ppbstrEventNames,
   [out] BSTR**  ppbstrDisplayNames,
   [out] BSTR**  ppbstrMemberIDs
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageStaticEventBinding Interface

Microsoft.VisualStudio.TextManager.Interop Namespace