다음을 통해 공유


SimpleEditorView.SetSite(IServiceProvider) Method

Definition

Initializes this view.

public:
 virtual int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ site);
public:
 virtual int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ site);
 virtual int SetSite(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & site);
public virtual int SetSite (Microsoft.VisualStudio.OLE.Interop.IServiceProvider site);
abstract member SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
override this.SetSite : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Public Overridable Function SetSite (site As IServiceProvider) As Integer

Parameters

Returns

Microsoft.VisualStudio.NativeMethods.S_OK.

Implements

Remarks

This method registers the view with the <xref:Microsoft.VisualStudio.Shell.Interop.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.

Applies to