ServiceProvider.IObjectWithSite.GetSite Method
Gets the current site object to resolve services.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'Declaration
Private Sub GetSite ( _
ByRef riid As Guid, _
<OutAttribute> ByRef ppv As IntPtr _
) Implements IObjectWithSite.GetSite
'Usage
Dim instance As ServiceProvider
Dim riid As Guid
Dim ppv As IntPtr
CType(instance, IObjectWithSite).GetSite(riid, _
ppv)
void IObjectWithSite.GetSite(
ref Guid riid,
out IntPtr ppv
)
private:
virtual void GetSite(
Guid% riid,
[OutAttribute] IntPtr% ppv
) sealed = IObjectWithSite::GetSite
private abstract GetSite :
riid:Guid byref *
ppv:IntPtr byref -> unit
private override GetSite :
riid:Guid byref *
ppv:IntPtr byref -> unit
JScript does not support explicit interface implementations.
Parameters
- riid
Type: System.Guid%
The GUID of the requested interface.
- ppv
Type: System.IntPtr%
The retrieved interface or nulla null reference (Nothing in Visual Basic).
Implements
IObjectWithSite.GetSite(Guid%, IntPtr%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.