SetSite Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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.

Show:
© 2016 Microsoft