次の方法で共有


ManagementException コンストラクタ (String, Exception)

ManagementException クラスの新しい空のインスタンスを初期化します。innerException パラメータが null 参照 (Visual Basic では Nothing) でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)

構文

'宣言
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'使用
Dim message As String
Dim innerException As Exception

Dim instance As New ManagementException(message, innerException)
public ManagementException (
    string message,
    Exception innerException
)
public:
ManagementException (
    String^ message, 
    Exception^ innerException
)
public ManagementException (
    String message, 
    Exception innerException
)
public function ManagementException (
    message : String, 
    innerException : Exception
)

パラメータ

  • message
    エラーを説明するメッセージ。
  • innerException
    現在の例外の原因である例外。

.NET Framework のセキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「」を参照してください。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1

参照

関連項目

ManagementException クラス
ManagementException メンバ
System.Management 名前空間