Retrieves the last site set using the IObjectWithSite.SetSite method. In cases where there is no known site, the object returns an exception.
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 ObjectWithSite
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%Provides the IID of the interface pointer returned in the ppvSite parameter.
ppvSite
Type: System.IntPtr%The address of the caller's void variable in which the object stores the interface pointer of the site last seen in the M:Microsoft.VisualStudio.Data.ObjectWithSite.Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.SetSite(System.Object) method.
Implements
IObjectWithSite.GetSite(Guid%, IntPtr%)
Remarks
Implements the IObjectWithSite.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.