Share via


IVsContainedLanguageCodeSupport.CreateUniqueEventName Method

Definition

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

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

Parameters

pszClassName
String

[in] Name of the class.

pszObjectName
String

[in] Name of the object.

pszNameOfEvent
String

[in] Name of the event.

pbstrEventHandlerName
String

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

Returns

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

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT CreateUniqueEventName(  
   [in]  LPCWSTR pszClassName,  
   [in]  LPCWSTR pszObjectName,  
   [in]  LPCWSTR pszNameOfEvent,  
   [out] BSTR*   pbstrEventHandlerName  
);  

Applies to