IVsContainedLanguageCodeSupport::GetEventHandlerMemberID Method (String^, String^, String^, String^, String^)

 

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)

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::Int32

If 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
);
Return to top
Show: