Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
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
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.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT CreateUniqueEventName(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszObjectName,
[in] LPCWSTR pszNameOfEvent,
[out] BSTR* pbstrEventHandlerName
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.