IVsUIElementPane.SetUIElementSite Method
Sites this pane.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Function SetUIElementSite ( _
pSP As IServiceProvider _
) As Integer
int SetUIElementSite(
IServiceProvider pSP
)
int SetUIElementSite(
[InAttribute] IServiceProvider^ pSP
)
abstract SetUIElementSite :
pSP:IServiceProvider -> int
function SetUIElementSite(
pSP : IServiceProvider
) : int
Parameters
pSP
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProviderThe service provider of the surface on which this pane was created..
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Visual Studio calls this method to site the pane with the service provider of the surface on which it is created.
.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.