EditorFactory.SetSite(IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.