Compartilhar via


IDocumentSite.GetSite Method

Returns the IServiceProvider interface for the document site. Typically returns the value set by SetSite.

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

Syntax

'Declaration
Function GetSite ( _
    <OutAttribute> ByRef ppSite As IServiceProvider _
) As Integer
int GetSite(
    out IServiceProvider ppSite
)
int GetSite(
    [OutAttribute] IServiceProvider^% ppSite
)
abstract GetSite : 
        ppSite:IServiceProvider byref -> int
function GetSite(
    ppSite : IServiceProvider
) : int

Parameters

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From objext.idl:

HRESULT IDocumentSite::GetSite(
   [out] IServiceProvider** ppSite
);

.NET Framework Security

See Also

Reference

IDocumentSite Interface

Microsoft.VisualStudio.Shell.Interop Namespace