Location Structure

Represents the location of the source of the error in the Transact-SQL input files to the DAC compilation unit.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.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.

Properties

  Name Description
Public property ColumnNumber Gets the column number of the location.
Public property LineNumber Gets the line number of the location.

Top

Methods

  Name Description
Public method CompareTo Compares two Location objects and returns the difference in the line numbers.
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 the location. (Overrides ValueType.ToString().)

Top

Remarks

If a compilation operation results in errors, the start and the end of the cause of the error are represented in this structure

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.

See Also

Reference

Microsoft.SqlServer.Management.Dac Namespace