Source Constructor
Initializes a new instance of the Source 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.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaración
Public Sub New ( _
service As LanguageService, _
textLines As IVsTextLines, _
colorizer As Colorizer _
)
public Source(
LanguageService service,
IVsTextLines textLines,
Colorizer colorizer
)
Parameters
- service
Type: Microsoft.VisualStudio.Package.LanguageService
The LanguageService object representing the language service that controls this instance. This is required and cannot be nulla null reference (Nothing in Visual Basic).
- textLines
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
The IVsTextLines object representing the source file. This is required and cannot be nulla null reference (Nothing in Visual Basic).
- colorizer
Type: Microsoft.VisualStudio.Package.Colorizer
The Colorizer object to use for syntax highlighting. This is required and cannot be nulla null reference (Nothing in Visual Basic).
Remarks
The Source class -- or your derivation of this class -- is instantiated in your implementation of the CreateSource method. If you derive from the Source class, be sure to call the base constructor.
.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.