次の方法で共有


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

'宣言
Function SetSite ( _
    pSite As IServiceProvider _
) As Integer
'使用
Dim instance As IDocumentSite
Dim pSite As IServiceProvider
Dim returnValue As Integer

returnValue = instance.SetSite(pSite)
int SetSite(
    IServiceProvider pSite
)
int SetSite(
    [InAttribute] IServiceProvider^ pSite
)
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.

Remarks

COM Signature

From objext.idl:

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

Permissions

See Also

Reference

IDocumentSite Interface

IDocumentSite Members

Microsoft.VisualStudio.Shell.Interop Namespace