LanguageService.GetScanner Method
Returns a single instantiation of a parser.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Dichiarazione
Public MustOverride Function GetScanner ( _
buffer As IVsTextLines _
) As IScanner
'Utilizzo
Dim instance As LanguageService
Dim buffer As IVsTextLines
Dim returnValue As IScanner
returnValue = instance.GetScanner(buffer)
public abstract IScanner GetScanner(
IVsTextLines buffer
)
public:
virtual IScanner^ GetScanner(
IVsTextLines^ buffer
) abstract
abstract GetScanner :
buffer:IVsTextLines -> IScanner
public abstract function GetScanner(
buffer : IVsTextLines
) : IScanner
Parameters
- buffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[in] An IVsTextLines representing the lines of source to parse.
Return Value
Type: Microsoft.VisualStudio.Package.IScanner
If successful, returns an IScanner object; otherwise, returns a null value.
Remarks
This method must be implemented in a class derived from the LanguageService class. The parser that is returned is used in the colorizer and can be used in all other parsing operations.
.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.