Share via


IVsContainedLanguageCodeSupport.GetCompatibleEventHandlers Method

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)

Syntax

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

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.

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

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

Microsoft.VisualStudio.TextManager.Interop Namespace