Compartilhar via


IVsContainedLanguageCodeSupport.GetCompatibleEventHandlers Method

Definition

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

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

Parameters

pszClassName
String

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

pszObjectTypeName
String

[in] The object type name for the event.

pszNameOfEvent
String

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

pcMembers
Int32

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

ppbstrEventHandlerNames
IntPtr

nativeint

[out] Returns an array of event handler names.

ppbstrMemberIDs
IntPtr

nativeint

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

Returns

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

Remarks

COM Signature

From singlefileeditor.idl:

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

Applies to