IScanner.SetSource Method

Sets the line to be parsed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Sub SetSource ( _
    source As String, _
    offset As Integer _
)
'使用
Dim instance As IScanner
Dim source As String
Dim offset As Integer

instance.SetSource(source, offset)
void SetSource(
    string source,
    int offset
)
void SetSource(
    String^ source, 
    int offset
)
function SetSource(
    source : String, 
    offset : int
)

Parameters

  • offset
    Type: System.Int32

    [in] The character offset into the line to start parsing. You must pay attention to this value.

Remarks

Language service scanning is always done on a line-by-line basis. This method is called to set the line to be parsed by subsequent calls to the ScanTokenAndProvideInfoAboutIt method.

Permissions

See Also

Reference

IScanner Interface

IScanner Members

Microsoft.VisualStudio.Package Namespace