Partager via


IVsContainedLanguageCodeSupport.GetEventHandlerMemberID Method

Definition

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

public:
 int GetEventHandlerMemberID(System::String ^ pszClassName, System::String ^ pszObjectTypeName, System::String ^ pszNameOfEvent, System::String ^ pszEventHandlerName, [Runtime::InteropServices::Out] System::String ^ % pbstrUniqueMemberID);
int GetEventHandlerMemberID(std::wstring const & pszClassName, std::wstring const & pszObjectTypeName, std::wstring const & pszNameOfEvent, std::wstring const & pszEventHandlerName, [Runtime::InteropServices::Out] std::wstring const & & pbstrUniqueMemberID);
public int GetEventHandlerMemberID (string pszClassName, string pszObjectTypeName, string pszNameOfEvent, string pszEventHandlerName, out string pbstrUniqueMemberID);
abstract member GetEventHandlerMemberID : string * string * string * string * string -> int
Public Function GetEventHandlerMemberID (pszClassName As String, pszObjectTypeName As String, pszNameOfEvent As String, pszEventHandlerName As String, ByRef pbstrUniqueMemberID As String) As Integer

Parameters

pszClassName
String

[in] The full class name that contains the event handler.

pszObjectTypeName
String

[in] The object type of the event.

pszNameOfEvent
String

[in] The name of the event.

pszEventHandlerName
String

[in] The name of the event handler.

pbstrUniqueMemberID
String

[out] Returns the unique member ID for the event handler.

Returns

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

Applies to