Condividi tramite


IDocumentSite2.SetSite Method (IServiceProvider)

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

'Dichiarazione
Function SetSite ( _
    pSite As IServiceProvider _
) As Integer
'Utilizzo
Dim instance As IDocumentSite2
Dim pSite As IServiceProvider
Dim returnValue As Integer

returnValue = instance.SetSite(pSite)
int SetSite(
    IServiceProvider pSite
)
int SetSite(
    [InAttribute] IServiceProvider^ pSite
)
abstract SetSite : 
        pSite:IServiceProvider -> int 
function SetSite(
    pSite : IServiceProvider
) : int

Parameters

Return Value

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

Implements

IDocumentSite.SetSite(IServiceProvider)

Remarks

C++

From objext.idl:

HRESULT IDocumentSite2::SetSite(
   [in] IServiceProvider* pSite
);

.NET Framework Security

See Also

Reference

IDocumentSite2 Interface

IDocumentSite2 Members

SetSite Overload

Microsoft.VisualStudio.Shell.Interop Namespace