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.
- ppv
Tipo: System.IntPtr%
[out] Restituisce un puntatore al provider di servizi quali IObjectWithSite.
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
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Vedere anche
Riferimenti
Spazio dei nomi Microsoft.VisualStudio.Shell.Design
SetSite