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
'宣言
Private Sub GetSite ( _
ByRef riid As Guid, _
<OutAttribute> ByRef ppvSite As IntPtr _
) Implements IObjectWithSite.GetSite
'使用
Dim instance As ServiceProviderWithSite
Dim riid As Guid
Dim ppvSite As IntPtr
CType(instance, IObjectWithSite).GetSite(riid, _
ppvSite)
void IObjectWithSite.GetSite(
ref Guid riid,
out IntPtr ppvSite
)
private:
virtual void GetSite(
Guid% riid,
[OutAttribute] IntPtr% ppvSite
) sealed = IObjectWithSite::GetSite
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.
Permissions
- 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.