EditorFactory::SetSite Method (IServiceProvider^)

 

Sets the service provider.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int SetSite(
	IServiceProvider^ psp
)

Parameters

psp
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

The IServiceProvider object of the editor being initialized.

Return Value

Type: System::Int32

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

This method also gets the language and editor extensions.

Return to top
Show: