IDocumentSite2.GetSite Method (IServiceProvider%)
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
'Declaración
Function GetSite ( _
<OutAttribute> ByRef ppSite As IServiceProvider _
) As Integer
'Uso
Dim instance As IDocumentSite2
Dim ppSite As IServiceProvider
Dim returnValue As Integer
returnValue = instance.GetSite(ppSite)
int GetSite(
out IServiceProvider ppSite
)
int GetSite(
[OutAttribute] IServiceProvider^% ppSite
)
abstract GetSite :
ppSite:IServiceProvider byref -> int
function GetSite(
ppSite : IServiceProvider
) : int
Parameters
- ppSite
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider%
[out] The IServiceProvider interface for the document site.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IDocumentSite.GetSite(IServiceProvider%)
Remarks
COM Signature
From objext.idl:
[C++]
HRESULT IDocumentSite2::GetSite(
[out] IServiceProvider** ppSite
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.