LanguagePreferences.OnRegisterView Method
Called when a view is registered.
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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Overridable Function OnRegisterView ( _
view As IVsTextView _
) As Integer
public virtual int OnRegisterView(
IVsTextView view
)
public:
virtual int OnRegisterView(
IVsTextView^ view
)
abstract OnRegisterView :
view:IVsTextView -> int
override OnRegisterView :
view:IVsTextView -> int
public function OnRegisterView(
view : IVsTextView
) : int
Parameters
view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] An IVsTextView interface representing the view that has been registered.
Return Value
Type: Int32
Implements
IVsTextManagerEvents2.OnRegisterView(IVsTextView)
Remarks
This method is called when a view has been created. A language service typically does not need to implement this method.
This method is an implementation of IVsTextManagerEvents2.OnRegisterView.
The base method does nothing.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.