TokenInfo Constructor (Int32, Int32, TokenType)
Initializes a new instance of the TokenInfo class to the specified values.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
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)
Syntax
'Declaration
Public Sub New ( _
startIndex As Integer, _
endIndex As Integer, _
type As TokenType _
)
public TokenInfo(
int startIndex,
int endIndex,
TokenType type
)
public:
TokenInfo(
int startIndex,
int endIndex,
TokenType type
)
new :
startIndex:int *
endIndex:int *
type:TokenType -> TokenInfo
public function TokenInfo(
startIndex : int,
endIndex : int,
type : TokenType
)
Parameters
startIndex
Type: Int32[in] The first character of the token.
endIndex
Type: Int32[in] The last character of the token.
type
Type: Microsoft.VisualStudio.Package.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.
.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.