SimpleEditorView.SetSite(IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- site
- IServiceProvider
The main IServiceProvider.
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.