Partager via


TokenInfo Constructors

Definition

Initializes a new instance of the TokenInfo class.

Overloads

TokenInfo()

Initializes a new instance of the TokenInfo class to the default values.

TokenInfo(Int32, Int32, TokenType)

Initializes a new instance of the TokenInfo class to the specified values.

Remarks

You can rely on the default initialization of C# or you can specify the token start and end points, as well as its type.

TokenInfo()

Initializes a new instance of the TokenInfo class to the default values.

public:
 TokenInfo();
public:
 TokenInfo();
 TokenInfo();
public TokenInfo ();
Public Sub New ()

Remarks

Sets all the values of the class to default values according to C# language rules.

Applies to

TokenInfo(Int32, Int32, TokenType)

Initializes a new instance of the TokenInfo class to the specified values.

public:
 TokenInfo(int startIndex, int endIndex, Microsoft::VisualStudio::Package::TokenType type);
public:
 TokenInfo(int startIndex, int endIndex, Microsoft::VisualStudio::Package::TokenType type);
 TokenInfo(int startIndex, int endIndex, Microsoft::VisualStudio::Package::TokenType type);
public TokenInfo (int startIndex, int endIndex, Microsoft.VisualStudio.Package.TokenType type);
new Microsoft.VisualStudio.Package.TokenInfo : int * int * Microsoft.VisualStudio.Package.TokenType -> Microsoft.VisualStudio.Package.TokenInfo
Public Sub New (startIndex As Integer, endIndex As Integer, type As TokenType)

Parameters

startIndex
Int32

[in] The first character of the token.

endIndex
Int32

[in] The last character of the token.

type
TokenType

[in] A value from the TokenType enumeration identifying the token's type.

Remarks

The token's color index and any token triggers must be specified after the object has been constructed.

Applies to