Freigeben über


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

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

See Also

Reference

IVsUIElementPane Interface

Microsoft.VisualStudio.Shell.Interop Namespace