Compartilhar via


SimpleEditorView.SetSite Method

Initializes this view.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function SetSite ( _
    site As IServiceProvider _
) As Integer
public virtual int SetSite(
    IServiceProvider site
)
public:
virtual int SetSite(
    IServiceProvider^ site
)
abstract SetSite : 
        site:IServiceProvider -> int  
override SetSite : 
        site:IServiceProvider -> int
public function SetSite(
    site : IServiceProvider
) : int

Parameters

Return Value

Type: Int32
S_OK.

Implements

IVsWindowPane.SetSite(IServiceProvider)

Remarks

This method registers the view with the IVsTextManager so that it knows the user is working with a view of the text buffer. If the file is edited outside of the development environment, the text buffer will ask the user whether to reload the file.

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace