Compartir a través de


ServiceProviderWithSite.IObjectWithSite.GetSite Method

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

See Also

Reference

ServiceProviderWithSite Class

Microsoft.VisualStudio.Data Namespace