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.