Metodo GlobalObjectProvider.IObjectWithSite.GetSite

ottiene il provider di servizi.

Spazio dei nomi:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Sintassi

'Dichiarazione
Private Sub GetSite ( _
    ByRef riid As Guid, _
    <OutAttribute> ByRef ppv As IntPtr _
) Implements IObjectWithSite.GetSite
void IObjectWithSite.GetSite(
    ref Guid riid,
    out IntPtr ppv
)

Parametri

  • riid
    Tipo: System.Guid%
    Il GUID del provider di servizi.

Implementa

IObjectWithSite.GetSite(Guid%, IntPtr%)

Eccezioni

Eccezione Condizione
COMException

An internal IServiceProvider has not been set by a call to SetSite or the provider cannot be cast to the IObjectWithSite type.

Note

Before calling the GetSite or the GetService methods, you must set the internal provider by a call to the SetSite method.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

GlobalObjectProvider Classe

Spazio dei nomi Microsoft.VisualStudio.Shell.Design

SetSite