Método IVsContainedLanguageStaticEventBinding.GetStaticEventBindingsForObject
Retorna uma coleção de eventos que são tratados de forma estática.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintaxe
'Declaração
Function GetStaticEventBindingsForObject ( _
pszClassName As String, _
pszObjectName As String, _
<OutAttribute> ByRef pcMembers As Integer, _
<OutAttribute> ByRef ppbstrEventNames As IntPtr, _
<OutAttribute> ByRef ppbstrDisplayNames As IntPtr, _
<OutAttribute> ByRef ppbstrMemberIDs As IntPtr _
) As Integer
int GetStaticEventBindingsForObject(
string pszClassName,
string pszObjectName,
out int pcMembers,
out IntPtr ppbstrEventNames,
out IntPtr ppbstrDisplayNames,
out IntPtr ppbstrMemberIDs
)
int GetStaticEventBindingsForObject(
[InAttribute] String^ pszClassName,
[InAttribute] String^ pszObjectName,
[OutAttribute] int% pcMembers,
[OutAttribute] IntPtr% ppbstrEventNames,
[OutAttribute] IntPtr% ppbstrDisplayNames,
[OutAttribute] IntPtr% ppbstrMemberIDs
)
abstract GetStaticEventBindingsForObject :
pszClassName:string *
pszObjectName:string *
pcMembers:int byref *
ppbstrEventNames:IntPtr byref *
ppbstrDisplayNames:IntPtr byref *
ppbstrMemberIDs:IntPtr byref -> int
function GetStaticEventBindingsForObject(
pszClassName : String,
pszObjectName : String,
pcMembers : int,
ppbstrEventNames : IntPtr,
ppbstrDisplayNames : IntPtr,
ppbstrMemberIDs : IntPtr
) : int
Parâmetros
pszClassName
Tipo: String[in] O nome totalmente qualificado da classe.
pszObjectName
Tipo: String[in] O nome totalmente qualificado do objeto que contém o evento.
pcMembers
Tipo: Int32%[out] Retorna o número de manipuladores de eventos especificado nas listas retornadas na ppbstrEventNames, ppbstrDisplayNames, e ppbstrMemberIDs parâmetros.
ppbstrEventNames
Tipo: IntPtr%[out] Retorna uma lista contendo os nomes de manipulador de eventos.
ppbstrDisplayNames
Tipo: IntPtr%[out] Retorna uma lista contendo os nomes de exibição para os manipuladores de eventos.
ppbstrMemberIDs
Tipo: IntPtr%[out] Retorna uma lista que contém o membro identificações do evento.
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 GetStaticEventBindingsForObject(
[in] LPCWSTR pszClassName,
[in] LPCWSTR pszObjectName,
[out] int* pcMembers,
[out] BSTR** ppbstrEventNames,
[out] BSTR** ppbstrDisplayNames,
[out] BSTR** ppbstrMemberIDs
);
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.