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.