Export (0) Print
Expand All

EditorFactory.SetSite Method

Sets the service provider.

This method is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in microsoft.visualstudio.package.languageservice.dll)

public virtual int SetSite (
	IServiceProvider psp
)
public int SetSite (
	IServiceProvider psp
)
public function SetSite (
	psp : IServiceProvider
) : int

Parameters

psp

The IServiceProvider object of the editor being initialized.

Return Value

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.

Community Additions

ADD
Show:
© 2014 Microsoft