ServiceProvider.IObjectWithSite.GetSite Method

Gets the current site object to resolve services.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Private Sub GetSite ( _
    ByRef riid As Guid, _
    <OutAttribute> ByRef ppv As IntPtr _
) Implements IObjectWithSite.GetSite
void IObjectWithSite.GetSite(
    ref Guid riid,
    out IntPtr ppv
)
private:
virtual void GetSite(
    Guid% riid, 
    [OutAttribute] IntPtr% ppv
) sealed = IObjectWithSite::GetSite
private abstract GetSite : 
        riid:Guid byref * 
        ppv:IntPtr byref -> unit  
private override GetSite : 
        riid:Guid byref * 
        ppv:IntPtr byref -> unit
JScript does not support explicit interface implementations.

Parameters

  • riid
    Type: Guid%

    The GUID of the requested interface.

  • ppv
    Type: IntPtr%

    The retrieved interface or nulla null reference (Nothing in Visual Basic).

Implements

IObjectWithSite.GetSite(Guid%, IntPtr%)

.NET Framework Security

See Also

Reference

ServiceProvider Class

Microsoft.VisualStudio.Shell Namespace