Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the line to be parsed.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Sub SetSource ( _
source As String, _
offset As Integer _
)
void SetSource(
string source,
int offset
)
void SetSource(
String^ source,
int offset
)
abstract SetSource :
source:string *
offset:int -> unit
function SetSource(
source : String,
offset : int
)
Parameters
- source
Type: System.String
[in] The line to be tokenized.
- 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.
.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.