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


Класс SourceInfo

The SourceInfo class represents a location in a DAC source file that has thrown an exception.

Иерархия наследования

System. . :: . .Object
  Microsoft.SqlServer.Management.Dac..::..SourceInfo

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

Синтаксис

'Декларация
Public Class SourceInfo
'Применение
Dim instance As SourceInfo
public class SourceInfo
public ref class SourceInfo
type SourceInfo =  class end
public class SourceInfo

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

Свойства

  Имя Описание
Открытое свойство End Gets the line and column number of the end location in the source file in which an exception was thrown.
Открытое свойство Filename Gets the name of source file in which the exception was thrown.
Открытое свойство Start Gets the line and column numbers of the start location in the source file in which an exception was thrown.

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Замечания

This class defines properties that get information about the specific points in the source file that triggered the exception.

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

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