IDocumentSite.SetSite Method

Sets the IServiceProvider interface for the document site.

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

Syntax

'Declaration
Function SetSite ( _
    pSite As IServiceProvider _
) As Integer
int SetSite(
    IServiceProvider pSite
)
int SetSite(
    [InAttribute] IServiceProvider^ pSite
)
abstract SetSite : 
        pSite:IServiceProvider -> int
function SetSite(
    pSite : 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::SetSite(
   [in] IServiceProvider* pSite
);

.NET Framework Security

See Also

Reference

IDocumentSite Interface

Microsoft.VisualStudio.Shell.Interop Namespace