Freigeben über


IVsContainedLanguageCodeSupport.CreateUniqueEventName Method

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)

Syntax

'Declaration
Function CreateUniqueEventName ( _
    pszClassName As String, _
    pszObjectName As String, _
    pszNameOfEvent As String, _
    <OutAttribute> ByRef pbstrEventHandlerName As String _
) As Integer
'Usage
Dim instance As IVsContainedLanguageCodeSupport
Dim pszClassName As String
Dim pszObjectName As String
Dim pszNameOfEvent As String
Dim pbstrEventHandlerName As String
Dim returnValue As Integer

returnValue = instance.CreateUniqueEventName(pszClassName, _
    pszObjectName, pszNameOfEvent, pbstrEventHandlerName)
int CreateUniqueEventName(
    string pszClassName,
    string pszObjectName,
    string pszNameOfEvent,
    out string pbstrEventHandlerName
)
int CreateUniqueEventName(
    [InAttribute] String^ pszClassName, 
    [InAttribute] String^ pszObjectName, 
    [InAttribute] String^ pszNameOfEvent, 
    [OutAttribute] String^% pbstrEventHandlerName
)
abstract CreateUniqueEventName : 
        pszClassName:string * 
        pszObjectName:string * 
        pszNameOfEvent:string * 
        pbstrEventHandlerName:string byref -> int 
function CreateUniqueEventName(
    pszClassName : String, 
    pszObjectName : String, 
    pszNameOfEvent : String, 
    pbstrEventHandlerName : String
) : int

Parameters

  • 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.

Remarks

COM Signature

From singlefileeditor.idl:

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

.NET Framework Security

See Also

Reference

IVsContainedLanguageCodeSupport Interface

IVsContainedLanguageCodeSupport Members

Microsoft.VisualStudio.TextManager.Interop Namespace