Partager via


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

'Déclaration
Function CreateUniqueEventName ( _
    pszClassName As String, _
    pszObjectName As String, _
    pszNameOfEvent As String, _
    <OutAttribute> ByRef pbstrEventHandlerName As String _
) As Integer
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

Microsoft.VisualStudio.TextManager.Interop Namespace