Поделиться через


Структура Location

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

Пространство имен:  Microsoft.SqlServer.Management.Dac
Сборка:  Microsoft.SqlServer.Management.Dac (в Microsoft.SqlServer.Management.Dac.dll)

Синтаксис

'Декларация
Public Structure Location _
    Implements IComparable(Of Location)
'Применение
Dim instance As Location
public struct Location : IComparable<Location>
public value class Location : IComparable<Location>
[<SealedAttribute>]
type Location =  
    struct
        interface IComparable<Location>
    end
JScript поддерживает использование структур, но не объявление новых.

Тип Location обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство ColumnNumber Gets the column number of the location.
Открытое свойство LineNumber Gets the line number of the location.

В начало

Методы

  Имя Описание
Открытый метод CompareTo Compares two Location objects and returns the difference in the line numbers.
Открытый метод Equals (Производный от ValueType.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от ValueType.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString Returns a string representation of the location. (Переопределяет ValueType. . :: . .ToString() () () ().)

В начало

Замечания

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

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.