Share via


IVsContainedLanguageCodeSupport.GetEventHandlerMemberID Method

Returns the unique member id of an event handler matching the provided description if exists.

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

Syntax

'Declaration
Function GetEventHandlerMemberID ( _
    pszClassName As String, _
    pszObjectTypeName As String, _
    pszNameOfEvent As String, _
    pszEventHandlerName As String, _
    <OutAttribute> ByRef pbstrUniqueMemberID As String _
) As Integer
int GetEventHandlerMemberID(
    string pszClassName,
    string pszObjectTypeName,
    string pszNameOfEvent,
    string pszEventHandlerName,
    out string pbstrUniqueMemberID
)
int GetEventHandlerMemberID(
    [InAttribute] String^ pszClassName, 
    [InAttribute] String^ pszObjectTypeName, 
    [InAttribute] String^ pszNameOfEvent, 
    [InAttribute] String^ pszEventHandlerName, 
    [OutAttribute] String^% pbstrUniqueMemberID
)
abstract GetEventHandlerMemberID : 
        pszClassName:string * 
        pszObjectTypeName:string * 
        pszNameOfEvent:string * 
        pszEventHandlerName:string * 
        pbstrUniqueMemberID:string byref -> int 
function GetEventHandlerMemberID(
    pszClassName : String, 
    pszObjectTypeName : String, 
    pszNameOfEvent : String, 
    pszEventHandlerName : String, 
    pbstrUniqueMemberID : String
) : int

Parameters

  • pszClassName
    Type: System.String
    [in] The full class name that contains the event handler.
  • pszObjectTypeName
    Type: System.String
    [in] The object type of the event.
  • pszEventHandlerName
    Type: System.String
    [in] The name of the event handler.
  • pbstrUniqueMemberID
    Type: System.String%
    [out] Returns the unique member ID for the event handler.

Return Value

Type: System.Int32
If successful, returns S_OK. If the event handler does not exist, returns S_FALSE. Otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT GetEventHandlerMemberID(
   [in]  LPCWSTR pszClassName,
   [in]  LPCWSTR pszObjectTypeName,
   [in]  LPCWSTR pszNameOfEvent,
   [in]  LPCWSTR pszEventHandlerName,
   [out] BSTR*   pbstrUniqueMemberID
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

Microsoft.VisualStudio.TextManager.Interop Namespace