ViewFilter Constructor
Initializes a new instance of the ViewFilter class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Dichiarazione
Public Sub New ( _
mgr As CodeWindowManager, _
view As IVsTextView _
)
'Utilizzo
Dim mgr As CodeWindowManager
Dim view As IVsTextView
Dim instance As New ViewFilter(mgr, view)
public ViewFilter(
CodeWindowManager mgr,
IVsTextView view
)
public:
ViewFilter(
CodeWindowManager^ mgr,
IVsTextView^ view
)
new :
mgr:CodeWindowManager *
view:IVsTextView -> ViewFilter
public function ViewFilter(
mgr : CodeWindowManager,
view : IVsTextView
)
Parameters
- mgr
Type: Microsoft.VisualStudio.Package.CodeWindowManager
[in] A CodeWindowManager object that owns this view. This is required and cannot be a null value.
- view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] An IVsTextView object this class is to work with. This is required and cannot be a null value.
Remarks
A new instance of the ViewFilter class is created in the CreateViewFilter method in the LanguageService class.
This constructor attaches this instantiation, as an IVsTextViewFilter interface, to the given view. The constructor also connects to the view to listen to view events as an IVsTextViewEvents interface. In addition, the constructor obtains and stores the Source object from the CodeWindowManager object.
.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.