Freigeben über


WindowPane.IVsWindowPane.SetSite(IServiceProvider) Method

Definition

Caution

The IVsWindowPane interface on the WindowPane is obsolete, use IVsUIElementPane

Initializes this window pane with the specified service provider. Obsolete.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ psp) = Microsoft::VisualStudio::Shell::Interop::IVsWindowPane::SetSite;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ psp) = Microsoft::VisualStudio::Shell::Interop::IVsWindowPane::SetSite;
int Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & psp);
[System.Obsolete("The IVsWindowPane interface on the WindowPane is obsolete, use IVsUIElementPane")]
int IVsWindowPane.SetSite (Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp);
[<System.Obsolete("The IVsWindowPane interface on the WindowPane is obsolete, use IVsUIElementPane")>]
abstract member Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Function SetSite (psp As IServiceProvider) As Integer Implements IVsWindowPane.SetSite

Parameters

Returns

If this method succeeds, it returns S_OK; if it fails, it returns Microsoft.VisualStudio.VSConstants._FAIL.

Implements

Attributes

Remarks

The <xref:Microsoft.VisualStudio.Shell.Interop.>IVsWindowPane.SetSite interface on this class is obsolete. Please use <xref:Microsoft.VisualStudio.Shell.Interop.>IVsWindowPane.SetSite instead.

Applies to