Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the last site set using the IObjectWithSite.SetSite method. If there is no known site, an exception is thrown.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Private Sub GetSite ( _
ByRef riid As Guid, _
<OutAttribute> ByRef ppvSite As IntPtr _
) Implements IObjectWithSite.GetSite
void IObjectWithSite.GetSite(
ref Guid riid,
out IntPtr ppvSite
)
private:
virtual void GetSite(
Guid% riid,
[OutAttribute] IntPtr% ppvSite
) sealed = IObjectWithSite::GetSite
private abstract GetSite :
riid:Guid byref *
ppvSite:IntPtr byref -> unit
private override GetSite :
riid:Guid byref *
ppvSite:IntPtr byref -> unit
JScript does not support explicit interface implementations.
Parameters
- riid
Type: System.Guid%
The interface ID (IID) of the interface pointer returnable in the ppvSite parameter.
- ppvSite
Type: System.IntPtr%
Address of the pointer variable that receives the interface pointer request in the riid parameter.
Implements
IObjectWithSite.GetSite(Guid%, IntPtr%)
Remarks
Provides a managed implementation of the GetSite method.
.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.