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

 

Creates a unique event handler name, given the class context, name of the object instance, and the name of event.

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

int CreateUniqueEventName(
	String^ pszClassName,
	String^ pszObjectName,
	String^ pszNameOfEvent,
	[OutAttribute] String^% pbstrEventHandlerName
)

Parameters

pszClassName
Type: System::String^

[in] Name of the class.

pszObjectName
Type: System::String^

[in] Name of the object.

pszNameOfEvent
Type: System::String^

[in] Name of the event.

pbstrEventHandlerName
Type: System::String^

[out] Returns the new name of an event handler.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

From singlefileeditor.idl:

HRESULT CreateUniqueEventName(
   [in]  LPCWSTR pszClassName,
   [in]  LPCWSTR pszObjectName,
   [in]  LPCWSTR pszNameOfEvent,
   [out] BSTR*   pbstrEventHandlerName
);
Return to top
Show: