カスタム エラー メッセージ、およびトリガーを起動する例外オブジェクトを使用して、HierarchyIdException クラスの新しいインスタンスを初期化します。
名前空間: 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
エラー メッセージを表す string です。
- innerException
型: System.Exception
現在の例外の原因になった例外インスタンスです。
説明
このコンストラクターは、別の例外オブジェクトによって呼び出されて、例外データをアップストリームに転送します。