WindowPane.IVsWindowPane.SetSite Method
Initializes this window pane with the specified service provider.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'Declaración
Private Function SetSite ( _
p As IServiceProvider _
) As Integer Implements IVsWindowPane.SetSite
'Uso
Dim instance As WindowPane
Dim p As IServiceProvider
Dim returnValue As Integer
returnValue = CType(instance, IVsWindowPane).SetSite(p)
int IVsWindowPane.SetSite(
IServiceProvider p
)
private:
virtual int SetSite(
IServiceProvider^ p
) sealed = IVsWindowPane::SetSite
private abstract SetSite :
p:IServiceProvider -> int
private override SetSite :
p:IServiceProvider -> int
JScript does not support explicit interface implementations.
Parameters
Return Value
Type: System.Int32
S_OK.
Implements
IVsWindowPane.SetSite(IServiceProvider)
Remarks
If the parent provider provides ServiceProviderHierarchy as a service, the specified service provider is inserted in the WindowPaneSite slot of the hierarchy. If it does not provide this service, a new service provider is created to resolve services through this site.
.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.