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


Конструктор HierarchyIdException (String, Exception)

Initializes a new instance of the HierarchyIdExceptionclass with a custom error message and the triggering exception object.

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

Синтаксис

'Декларация
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'Применение
Dim message As String 
Dim innerException As Exception 

Dim instance As New HierarchyIdException(message, _
    innerException)
public HierarchyIdException(
    string message,
    Exception innerException
)
public:
HierarchyIdException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> HierarchyIdException
public function HierarchyIdException(
    message : String, 
    innerException : Exception
)

Параметры

  • message
    Тип: System.String
    A string that contains the error message
  • innerException
    Тип: System.Exception
    The exception instance that caused the current exception.

Замечания

The constructor is called by another exception object to transmit exception data upstream.

См. также

Справочник

HierarchyIdException Класс

Перегрузка HierarchyIdException

Пространство имен Microsoft.SqlServer.Types