Partilhar via


EditorFactory.SetSite(IServiceProvider) Method

Definition

Sets the service provider.

public:
 virtual int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ psp);
public:
 virtual int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ psp);
 virtual int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & psp);
public virtual int SetSite (Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp);
abstract member SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
override this.SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Public Overridable Function SetSite (psp As IServiceProvider) As Integer

Parameters

psp
IServiceProvider

The IServiceProvider object of the editor being initialized.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

This method also gets the language and editor extensions.

Applies to