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

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。