IVsContainedLanguageCodeSupport::GetEventHandlerMemberID Method (String^, String^, String^, String^, String^)
Visual Studio 2015
Returns the unique member id of an event handler matching the provided description if exists.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int GetEventHandlerMemberID(
String^ pszClassName,
String^ pszObjectTypeName,
String^ pszNameOfEvent,
String^ pszEventHandlerName,
[OutAttribute] String^% pbstrUniqueMemberID
)
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.
- pszNameOfEvent
-
Type:
System::String^
[in] The name 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::Int32If successful, returns S_OK. If the event handler does not exist, returns S_FALSE. Otherwise, returns an error code.
From singlefileeditor.idl:
HRESULT GetEventHandlerMemberID( [in] LPCWSTR pszClassName, [in] LPCWSTR pszObjectTypeName, [in] LPCWSTR pszNameOfEvent, [in] LPCWSTR pszEventHandlerName, [out] BSTR* pbstrUniqueMemberID );
Show: