Método IVsContainedLanguageCodeSupport.GetEventHandlerMemberID
Retorna a id de membro exclusivo de um manipulador de eventos que correspondem a descrição fornecida se existe.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
Function GetEventHandlerMemberID ( _
pszClassName As String, _
pszObjectTypeName As String, _
pszNameOfEvent As String, _
pszEventHandlerName As String, _
<OutAttribute> ByRef pbstrUniqueMemberID As String _
) As Integer
int GetEventHandlerMemberID(
string pszClassName,
string pszObjectTypeName,
string pszNameOfEvent,
string pszEventHandlerName,
out string pbstrUniqueMemberID
)
int GetEventHandlerMemberID(
[InAttribute] String^ pszClassName,
[InAttribute] String^ pszObjectTypeName,
[InAttribute] String^ pszNameOfEvent,
[InAttribute] String^ pszEventHandlerName,
[OutAttribute] String^% pbstrUniqueMemberID
)
abstract GetEventHandlerMemberID :
pszClassName:string *
pszObjectTypeName:string *
pszNameOfEvent:string *
pszEventHandlerName:string *
pbstrUniqueMemberID:string byref -> int
function GetEventHandlerMemberID(
pszClassName : String,
pszObjectTypeName : String,
pszNameOfEvent : String,
pszEventHandlerName : String,
pbstrUniqueMemberID : String
) : int
Parâmetros
pszClassName
Tipo: String[in] O nome completo da classe que contém o manipulador de eventos.
pszObjectTypeName
Tipo: String[in] O tipo de objeto do evento.
pszNameOfEvent
Tipo: String[in] O nome do evento.
pszEventHandlerName
Tipo: String[in] O nome do manipulador de eventos.
pbstrUniqueMemberID
Tipo: String%[out] Retorna a ID de membro exclusivo para o manipulador de eventos.
Valor de retorno
Tipo: Int32
Se bem-sucedida, retorna S_OK.Retorna se o manipulador de eventos não existir, S_FALSE.Caso contrário, retorna um código de erro.
Comentários
COM assinatura
De singlefileeditor.idl:
HRESULT GetEventHandlerMemberID(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszObjectTypeName,
[in] LPCWSTR pszNameOfEvent,
[in] LPCWSTR pszEventHandlerName,
[out] BSTR* pbstrUniqueMemberID
);
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.