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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣告
Public Sub New ( _
startIndex As Integer, _
endIndex As Integer, _
type As TokenType _
)
'用途
Dim startIndex As Integer
Dim endIndex As Integer
Dim type As TokenType
Dim instance As New TokenInfo(startIndex, _
endIndex, type)
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: System.Int32
[in] The first character of the token.
- endIndex
Type: System.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.