Location Structure

Represents the source location.

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

Syntax

'Declaration
Public Structure Location _
    Implements IComparable(Of Location)
'Usage
Dim instance As Location
public struct Location : IComparable<Location>
public value class Location : IComparable<Location>
[<SealedAttribute>]
type Location =  
    struct
        interface IComparable<Location>
    end
JScript suports the use of structures, but not the declaration of new ones.

The Location type exposes the following members.

Constructors

  Name Description
Public method Location Initializes a new instance of the Location class with the specified line and column number.

Top

Methods

  Name Description
Public method CompareTo Compares this Location object with the specified Location object and returns an integer that indicates their relative positions to one another.
Public method Equals (Inherited from ValueType.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from ValueType.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string representation of this Location object. (Overrides ValueType.ToString().)

Top

Fields

  Name Description
Public field ColumnNumber Gets the column number.
Public field LineNumber Gets the line number.

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.