Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'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: 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.