SimpleEditorView.SetSite Method

Initializes this view.

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

Syntax

'宣言
Public Overridable Function SetSite ( _
    site As IServiceProvider _
) As Integer
'使用
Dim instance As SimpleEditorView
Dim site As IServiceProvider
Dim returnValue As Integer

returnValue = instance.SetSite(site)
public virtual int SetSite(
    IServiceProvider site
)
public:
virtual int SetSite(
    IServiceProvider^ site
)
public function SetSite(
    site : IServiceProvider
) : int

Parameters

Return Value

Type: System.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.

Permissions

See Also

Reference

SimpleEditorView Class

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace