TokenInfo.Token Property

Determines the token ID as represented by the TokenInfo object.

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

Syntax

'宣言
Public Property Token As Integer
'使用
Dim instance As TokenInfo
Dim value As Integer

value = instance.Token

instance.Token = value
public int Token { get; set; }
public:
property int Token {
    int get ();
    void set (int value);
}
public function get Token () : int
public function set Token (value : int)

Property Value

Type: System.Int32

Returns an integer specifying the token ID.

Remarks

The token ID represents a particular language token and is specific to the scanner or parser used. This could be used, for example, to quickly find a specific token in a parse tree if more information about that token is needed than can be represented in the TokenInfo class.

The managed package framework language service classes do not use this property.

Permissions

See Also

Reference

TokenInfo Class

TokenInfo Members

Microsoft.VisualStudio.Package Namespace