TokenInfo.Type Property
Determines the type of the token.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.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
'宣言
Public Property Type As TokenType
public TokenType Type { get; set; }
Property Value
Type: Microsoft.VisualStudio.Package.TokenType
Returns a value from the TokenType enumeration.
Remarks
Your scanner should adhere to the meaning of the existing values in the TokenType enumeration as the default managed package framework language service classes use those values in many places. You can add additional types as necessary but use the existing types first.
.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.