Share via


Token Class

Represents a token.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.SqlParser.Parser.Token

Namespace:  Microsoft.SqlServer.Management.SqlParser.Parser
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Class Token
'Usage
Dim instance As Token
public class Token
public ref class Token
type Token =  class end
public class Token

The Token type exposes the following members.

Properties

  Name Description
Public property EndLocation Gets the end location of the token.
Public property Id Gets the token ID.
Public property IsSignificant Gets a value indicating whether the token is a significant token. White space and comments are examples of non-significant tokens.
Public property StartLocation Gets the start location of the token.
Public property Text Gets the token text.
Public property Type Gets the type of the token.
Public property Xml Gets the XML representation of the token.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string represenation of the token. (Overrides Object.ToString().)
Public method WriteXml Writes the XML representation of the token out to the specified XmlWriter.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.