WarningExceptionとは? わかりやすく解説

WarningException クラス

エラーではなく警告として処理される例外指定します

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
Public Class WarningException
    Inherits SystemException
Dim instance As WarningException
[SerializableAttribute] 
public class WarningException : SystemException
[SerializableAttribute] 
public ref class WarningException : public
 SystemException
/** @attribute SerializableAttribute() */ 
public class WarningException extends SystemException
SerializableAttribute 
public class WarningException extends
 SystemException
解説解説
使用例使用例

警告キャッチし、その警告メッセージ解釈する方法次のコード例示します

Dim myEx As New WarningException("This
 is a warning")
Console.WriteLine(myEx.Message)
Console.WriteLine(myEx.ToString())
WarningException myEx=new WarningException("This is a warning");
        
Console.WriteLine(myEx.Message);
Console.WriteLine(myEx.ToString());
WarningException^ myEx = gcnew WarningException( "This is a warning" );
Console::WriteLine( myEx->Message );
Console::WriteLine( myEx->ToString() );
WarningException myEx = new WarningException("This is a warning");
Console.WriteLine(myEx.get_Message());
Console.WriteLine(myEx.ToString());
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.ComponentModel.WarningException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WarningException コンストラクタ ()


WarningException コンストラクタ (String, String, String)

指定したメッセージ用意し指定したヘルプ ファイルヘルプ トピックアクセスできるようにして、WarningException クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    message As String, _
    helpUrl As String, _
    helpTopic As String _
)
Dim message As String
Dim helpUrl As String
Dim helpTopic As String

Dim instance As New WarningException(message,
 helpUrl, helpTopic)
public WarningException (
    string message,
    string helpUrl,
    string helpTopic
)
public:
WarningException (
    String^ message, 
    String^ helpUrl, 
    String^ helpTopic
)
public WarningException (
    String message, 
    String helpUrl, 
    String helpTopic
)
public function WarningException (
    message : String, 
    helpUrl : String, 
    helpTopic : String
)

パラメータ

message

エンド ユーザー表示するメッセージ

helpUrl

ユーザーヘルプ要求した場合表示するヘルプ ファイル

helpTopic

ユーザーヘルプ要求した場合表示するヘルプ トピック

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WarningException コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

シリアル化データコンテキスト指定して、WarningException クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New WarningException(info,
 context)
protected WarningException (
    SerializationInfo info,
    StreamingContext context
)
protected:
WarningException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected WarningException (
    SerializationInfo info, 
    StreamingContext context
)
protected function WarningException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

シリアル化使用する SerializationInfo。

context

シリアル化使用する転送先。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

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

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

詳細説明例外指定して、WarningException クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    message As String, _
    innerException As Exception _
)
Dim message As String
Dim innerException As Exception

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

パラメータ

message

エラー詳細説明

innerException

この例外原因である内部例外への参照

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WarningException コンストラクタ


WarningException コンストラクタ (String, String)

指定したメッセージ用意し特定のヘルプ ファイルアクセスできるように指定して、WarningException クラス新しインスタンス初期化します。

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    message As String, _
    helpUrl As String _
)
Dim message As String
Dim helpUrl As String

Dim instance As New WarningException(message,
 helpUrl)
public WarningException (
    string message,
    string helpUrl
)
public:
WarningException (
    String^ message, 
    String^ helpUrl
)
public WarningException (
    String message, 
    String helpUrl
)
public function WarningException (
    message : String, 
    helpUrl : String
)

パラメータ

message

エンド ユーザー表示するメッセージ

helpUrl

ユーザーヘルプ要求した場合表示するヘルプ ファイル

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WarningException コンストラクタ (String)


WarningException プロパティ


パブリック プロパティパブリック プロパティ

プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

WarningException クラス
System.ComponentModel 名前空間

WarningException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WarningException クラス
System.ComponentModel 名前空間

WarningException メンバ

エラーではなく警告として処理される例外指定します

WarningException データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WarningException クラス
System.ComponentModel 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「WarningException」の関連用語

WarningExceptionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



WarningExceptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS