ConfigurationException クラス
定義
構成システムのエラーが発生したときにスローされる例外。The exception that is thrown when a configuration system error has occurred.
public ref class ConfigurationException : SystemException
public class ConfigurationException : SystemException
[System.Serializable]
public class ConfigurationException : SystemException
type ConfigurationException = class
inherit SystemException
[<System.Serializable>]
type ConfigurationException = class
inherit SystemException
Public Class ConfigurationException
Inherits SystemException
- 継承
- 派生
- 属性
注釈
ConfigurationExceptionアプリケーションが構成ファイルに対してデータの読み取りまたは書き込みを試みたが、失敗した場合は、例外がスローされます。The ConfigurationException exception is thrown if the application attempts to read or write data to the configuration file but is unsuccessful. この原因としては、構成ファイル内の不適切な XML、ファイルのアクセス許可の問題、および有効でない値を持つ構成プロパティなどが考えられます。Some possible reasons for this can include malformed XML in the configuration file, file permission issues, and configuration properties with values that are not valid.
注意
ConfigurationExceptionオブジェクトは旧バージョンとの互換性のために保持されています。The ConfigurationException object is maintained for backward compatibility. ConfigurationErrorsExceptionこのオブジェクトは、構成システムで置き換えられます。The ConfigurationErrorsException object replaces it for the configuration system.
コンストラクター
ConfigurationException() |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(SerializationInfo, StreamingContext) |
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(String) |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(String, Exception) |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(String, Exception, String, Int32) |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(String, Exception, XmlNode) |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(String, String, Int32) |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
ConfigurationException(String, XmlNode) |
互換性のために残されています。
互換性のために残されています。
ConfigurationException クラスの新しいインスタンスを初期化します。Initializes a new instance of the ConfigurationException class. |
プロパティ
BareMessage |
この構成上の例外がスローされた理由の記述を取得します。Gets a description of why this configuration exception was thrown. |
Data |
例外に関する追加のユーザー定義情報を提供する、キーと値のペアのコレクションを取得します。Gets a collection of key/value pairs that provide additional user-defined information about the exception. (継承元 Exception) |
Filename |
この構成上の例外がスローされる原因となった構成ファイルのパスを取得します。Gets the path to the configuration file that caused this configuration exception to be thrown. |
HelpLink |
この例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。Gets or sets a link to the help file associated with this exception. (継承元 Exception) |
HResult |
特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (継承元 Exception) |
InnerException |
現在の例外の原因となる Exception インスタンスを取得します。Gets the Exception instance that caused the current exception. (継承元 Exception) |
Line |
この構成上の例外がスローされた構成ファイル内の行番号を取得します。Gets the line number within the configuration file at which this configuration exception was thrown. |
Message |
この構成上の例外がスローされた理由の拡張された記述を取得します。Gets an extended description of why this configuration exception was thrown. |
Source |
エラーの原因となるアプリケーションまたはオブジェクトの名前を取得または設定します。Gets or sets the name of the application or the object that causes the error. (継承元 Exception) |
StackTrace |
呼び出し履歴で直前のフレームの文字列形式を取得します。Gets a string representation of the immediate frames on the call stack. (継承元 Exception) |
TargetSite |
現在の例外がスローされたメソッドを取得します。Gets the method that throws the current exception. (継承元 Exception) |
メソッド
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetBaseException() |
派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の根本原因である Exception を返します。When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (継承元 Exception) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetObjectData(SerializationInfo, StreamingContext) |
ファイル名とこの構成上の例外が発生した行番号を使用して、SerializationInfo オブジェクトを設定します。Sets the SerializationInfo object with the file name and line number at which this configuration exception occurred. |
GetType() |
現在のインスタンスのランタイム型を取得します。Gets the runtime type of the current instance. (継承元 Exception) |
GetXmlNodeFilename(XmlNode) |
互換性のために残されています。
互換性のために残されています。
この構成上の例外がスローされたときに、内部 XmlNode オブジェクトの読み込み元であった構成ファイルのパスを取得します。Gets the path to the configuration file from which the internal XmlNode object was loaded when this configuration exception was thrown. |
GetXmlNodeLineNumber(XmlNode) |
互換性のために残されています。
互換性のために残されています。
この構成上の例外がスローされたときに、内部 XmlNode オブジェクトが表していた構成ファイル内の行番号を取得します。Gets the line number within the configuration file that the internal XmlNode object represented when this configuration exception was thrown. |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在の例外の文字列形式を作成して返します。Creates and returns a string representation of the current exception. (継承元 Exception) |
イベント
SerializeObjectState |
例外がシリアル化され、例外に関するシリアル化されたデータを含む例外状態オブジェクトが作成されたときに発生します。Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (継承元 Exception) |