Método IVsContainedLanguageCodeSupport.CreateUniqueEventName
Cria um manipulador de evento exclusivo, nome, receberá um contexto de classe, o nome da instância do objeto e o nome do evento.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
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
Parâmetros
pszClassName
Tipo: String[in] Nome da classe.
pszObjectName
Tipo: String[in] Nome do objeto.
pszNameOfEvent
Tipo: String[in] Nome do evento.
pbstrEventHandlerName
Tipo: String%[out] Retorna o novo nome de um manipulador de eventos.
Valor de retorno
Tipo: Int32
Se bem-sucedida, retorna S_OK; Caso contrário, retorna um código de erro.
Comentários
COM assinatura
De singlefileeditor.idl:
HRESULT CreateUniqueEventName(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszObjectName,
[in] LPCWSTR pszNameOfEvent,
[out] BSTR* pbstrEventHandlerName
);
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.