Partager via


Structure Location

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

Espace de noms :  Microsoft.SqlServer.Management.Dac
Assembly :  Microsoft.SqlServer.Management.Dac (en Microsoft.SqlServer.Management.Dac.dll)

Syntaxe

'Déclaration
Public Structure Location _
    Implements IComparable(Of Location)
'Utilisation
Dim instance As Location
public struct Location : IComparable<Location>
public value class Location : IComparable<Location>
[<SealedAttribute>]
type Location =  
    struct
        interface IComparable<Location>
    end
JScript prend en charge l'utilisation de structures, mais pas la déclaration de nouvelles structures.

Le type Location expose les membres suivants.

Propriétés

  Nom Description
Propriété publique ColumnNumber Gets the column number of the location.
Propriété publique LineNumber Gets the line number of the location.

Haut de la page

Méthodes

  Nom Description
Méthode publique CompareTo Compares two Location objects and returns the difference in the line numbers.
Méthode publique Equals (hérité de ValueType.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de ValueType.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Returns a string representation of the location. (remplace ValueType. . :: . .ToString() () () ().)

Haut de la page

Notes

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.