ObjectWithSite.IObjectWithSite.GetSite Method
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
'Déclaration
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%
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.
.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.