IVsContainedLanguageStaticEventBinding.GetStaticEventBindingsForObject Method

Definition

Returns a collection of events that are statically handled.

public:
 int GetStaticEventBindingsForObject(System::String ^ pszClassName, System::String ^ pszObjectName, [Runtime::InteropServices::Out] int % pcMembers, [Runtime::InteropServices::Out] IntPtr % ppbstrEventNames, [Runtime::InteropServices::Out] IntPtr % ppbstrDisplayNames, [Runtime::InteropServices::Out] IntPtr % ppbstrMemberIDs);
public int GetStaticEventBindingsForObject (string pszClassName, string pszObjectName, out int pcMembers, out IntPtr ppbstrEventNames, out IntPtr ppbstrDisplayNames, out IntPtr ppbstrMemberIDs);
abstract member GetStaticEventBindingsForObject : string * string * int * nativeint * nativeint * nativeint -> int
Public Function GetStaticEventBindingsForObject (pszClassName As String, pszObjectName As String, ByRef pcMembers As Integer, ByRef ppbstrEventNames As IntPtr, ByRef ppbstrDisplayNames As IntPtr, ByRef ppbstrMemberIDs As IntPtr) As Integer

Parameters

pszClassName
String

[in] The fully qualified name of the class.

pszObjectName
String

[in] The fully qualified name of the object that contains the event.

pcMembers
Int32

[out] Returns the number of event handlers specified in the lists returned in the ppbstrEventNames, ppbstrDisplayNames, and ppbstrMemberIDs parameters.

ppbstrEventNames
IntPtr

nativeint

[out] Returns a list containing the event handler names.

ppbstrDisplayNames
IntPtr

nativeint

[out] Returns a list containing the display names for the event handlers.

ppbstrMemberIDs
IntPtr

nativeint

[out] Returns a list containing the event member IDs.

Returns

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  
);  

Applies to