IVsContainedLanguageCodeSupport::GetCompatibleEventHandlers Method (String^, String^, String^, Int32, IntPtr, IntPtr)

 

Returns a collection of existing members that match the signature of the provided event description.

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

int GetCompatibleEventHandlers(
	String^ pszClassName,
	String^ pszObjectTypeName,
	String^ pszNameOfEvent,
	[OutAttribute] int% pcMembers,
	[OutAttribute] IntPtr% ppbstrEventHandlerNames,
	[OutAttribute] IntPtr% ppbstrMemberIDs
)

Parameters

pszClassName
Type: System::String^

[in] The full name of the class from which to get the event handlers.

pszObjectTypeName
Type: System::String^

[in] The object type name for the event.

pszNameOfEvent
Type: System::String^

[in] The name of the event for which to get the event handlers.

pcMembers
Type: System::Int32

[out] Returns the number of members in the ppbstrEventHandlerNames and ppbstrMemberIDs arrays.

ppbstrEventHandlerNames
Type: System::IntPtr

[out] Returns an array of event handler names.

ppbstrMemberIDs
Type: System::IntPtr

[out] Returns an array of unique member IDs for each event handler.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

From singlefileeditor.idl:

HRESULT GetCompatibleEventHandlers(
   [in]  LPCWSTR pszClassName,
   [in]  LPCWSTR pszObjectTypeName,
   [in]  LPCWSTR pszNameOfEvent,
   [out] int*    pcMembers,
   [out] BSTR**  ppbstrEventHandlerNames,
   [out] BSTR**  ppbstrMemberIDs);
Return to top
Show: