Condividi tramite


Metodo IVsContainedLanguageStaticEventBinding.AddStaticEventBinding

Associa un evento statico al membro specificato.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintassi

'Dichiarazione
Function AddStaticEventBinding ( _
    pszClassName As String, _
    pszUniqueMemberID As String, _
    pszObjectName As String, _
    pszNameOfEvent As String _
) As Integer
int AddStaticEventBinding(
    string pszClassName,
    string pszUniqueMemberID,
    string pszObjectName,
    string pszNameOfEvent
)
int AddStaticEventBinding(
    [InAttribute] String^ pszClassName, 
    [InAttribute] String^ pszUniqueMemberID, 
    [InAttribute] String^ pszObjectName, 
    [InAttribute] String^ pszNameOfEvent
)
abstract AddStaticEventBinding : 
        pszClassName:string * 
        pszUniqueMemberID:string * 
        pszObjectName:string * 
        pszNameOfEvent:string -> int
function AddStaticEventBinding(
    pszClassName : String, 
    pszUniqueMemberID : String, 
    pszObjectName : String, 
    pszNameOfEvent : String
) : int

Parametri

  • pszClassName
    Tipo: String

    [in] Il nome completo della classe il membro si trova in.

  • pszUniqueMemberID
    Tipo: String

    [in] ID univoco del membro che deve gestire l'evento.

  • pszObjectName
    Tipo: String

    [in] Il nome dell'oggetto che contiene l'evento.

  • pszNameOfEvent
    Tipo: String

    [in] Il nome dell'evento.

Valore restituito

Tipo: Int32
Se l'operazione riesce, restituisce S_OK; in caso contrario, restituisce un codice di errore.

Note

Firma COM

da singlefileeditor.idl:

HRESULT AddStaticEventBinding(
   [in] LPCWSTR pszClassName,
   [in] LPCWSTR pszUniqueMemberID,
   [in] LPCWSTR pszObjectName,
   [in] LPCWSTR pszNameOfEvent
);

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsContainedLanguageStaticEventBinding Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop