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

ConfigurationErrorsException クラス

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

構成システムエラー発生したときにスローされる例外

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

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

カスタム セクション作成し、そのプロパティ変更時に ConfigurationErrorsException 例外生成するコード例次に示します

Imports System
Imports System.Configuration
Imports System.Collections.Specialized
Imports System.Collections



' Define a custom section.

NotInheritable Public Class
 CustomSection
    Inherits ConfigurationSection
    
    Public Sub New() 
    
    End Sub 'New
    
    
    <ConfigurationProperty("fileName", DefaultValue:="default.txt",
 IsRequired:=True, IsKey:=False), StringValidator(InvalidCharacters:=" ~!@#$%^&*()[]{}/;'""|\",
 MinLength:=1, MaxLength:=60)> _
    Public Property FileName() As
 String
        Get
            Return CStr(Me("fileName"))
        End Get
        Set(ByVal value As
 String)
            Me("fileName") = value
        End Set
    End Property
    
    
    <ConfigurationProperty("maxUsers", DefaultValue:=10,
 IsRequired:=False), LongValidator(MinValue:=1, MaxValue:=100, ExcludeRange:=False)>
 _
    Public Property MaxUsers() As
 Long
        Get
            Return Fix(Me("maxUsers"))
        End Get
        Set(ByVal value As
 Long)
            Me("maxUsers") = value
        End Set
    End Property
End Class 'CustomSection 


' Create the custom section and write it to
' the configuration file.

Class UsingConfigurationErrorsException
    
    ' Create a custom section.
    Shared Sub New()

        ' Get the application configuration file.
        Dim config _
        As System.Configuration.Configuration = _
        ConfigurationManager.OpenExeConfiguration( _
        ConfigurationUserLevel.None)

        ' If the section does not exist in the configuration
        ' file, create it and save it to the file.
        If config.Sections("CustomSection")
 Is Nothing Then
            Dim custSection As New
 CustomSection()
            config.Sections.Add("CustomSection", custSection)
            custSection = config.GetSection("CustomSection")
            custSection.SectionInformation.ForceSave = True
            config.Save(ConfigurationSaveMode.Full)
        End If

    End Sub 'New
    
    
    ' Modify a custom section and cause configuration 
    ' error exceptions.
    Shared Sub ModifyCustomSection() 
        
        Try
            ' Get the application configuration file.
            Dim config _
            As System.Configuration.Configuration = _
            ConfigurationManager.OpenExeConfiguration( _
            ConfigurationUserLevel.None)

            Dim custSection _
            As CustomSection = _
            config.Sections("CustomSection")
             
            ' Change the section properties.
            custSection.FileName = "newName.txt"
            
            ' Cause an exception.
            custSection.MaxUsers = _
            custSection.MaxUsers + 100
            
            If Not custSection.ElementInformation.IsLocked
 Then
                config.Save()
            Else
                Console.WriteLine( _
                "Section was locked, could not update.")
            End If
        Catch err As ConfigurationErrorsException
            
            Dim msg As String
 = err.Message
            Console.WriteLine("Message: {0}", msg)
            Dim fileName As String
 = err.Filename
            Console.WriteLine("Filename: {0}", _
            fileName)
            Dim lineNumber As Integer
 = err.Line
            Console.WriteLine("Line: {0}", _
            lineNumber.ToString())
            Dim bmsg As String
 = err.BareMessage
            Console.WriteLine("BareMessage: {0}",
 bmsg)
            Dim src As String
 = err.Source
            Console.WriteLine("Source: {0}", src)
            Dim st As String
 = err.StackTrace
            Console.WriteLine("StackTrace: {0}", st)
        End Try

    End Sub 'ModifyCustomSection

    Shared Sub Main(ByVal
 args() As String) 
        ModifyCustomSection()
    
    End Sub 'Main
End Class 'UsingConfigurationErrorsException
 

using System;
using System.Configuration;
using System.Collections.Specialized;
using System.Collections;

namespace Samples.AspNet
{

    // Define a custom section.
    public sealed class CustomSection :
       ConfigurationSection
    {
        public CustomSection()
        {
        }

        [ConfigurationProperty("fileName", DefaultValue = "default.txt"
,
                    IsRequired = true, IsKey = false)]
        [StringValidator(InvalidCharacters = " ~!@#$%^&*()[]{}/;'\"|\\"
,
            MinLength = 1, MaxLength = 60)]
        public string FileName
        {
            get
            {
                return (string)this["fileName"];
            }
            set
            {
                this["fileName"] = value;
            }
        }

        [ConfigurationProperty("maxUsers", DefaultValue = (long)10,
            IsRequired = false)]
        [LongValidator(MinValue = 1, MaxValue = 100,
            ExcludeRange = false)]
        public long MaxUsers
        {
            get
            {
                return (long)this["maxUsers"];
            }
            set
            {
                this["maxUsers"] = value;
            }
        }

    }


    // Create the custom section and write it to
    // the configuration file.
    class UsingConfigurationErrorsException
    {
        // Create a custom section.
        static UsingConfigurationErrorsException()
        {
            // Get the application configuration file.
            System.Configuration.Configuration config =
                    ConfigurationManager.OpenExeConfiguration(
                    ConfigurationUserLevel.None);

            // If the section does not exist in the configuration
            // file, create it and save it to the file.
            if (config.Sections["CustomSection"] ==
 null)
            {
                CustomSection custSection = new CustomSection();
                config.Sections.Add("CustomSection", custSection);
                custSection =
                    config.GetSection("CustomSection") as CustomSection;
                custSection.SectionInformation.ForceSave = true;
                config.Save(ConfigurationSaveMode.Full);
            }
        }
        
        // Modify a custom section and cause configuration 
        // error exceptions.
        static void ModifyCustomSection()
        {

            try
            {
                // Get the application configuration file.
                System.Configuration.Configuration config =
                        ConfigurationManager.OpenExeConfiguration(
                        ConfigurationUserLevel.None);

                CustomSection custSection =
                   config.Sections["CustomSection"] as CustomSection;

                // Change the section properties.
                custSection.FileName = "newName.txt";
                
                // Cause an exception.
                custSection.MaxUsers = custSection.MaxUsers + 100;

                if (!custSection.ElementInformation.IsLocked)
                    config.Save();
                else
                    Console.WriteLine(
                        "Section was locked, could not update.");
            }
            catch (ConfigurationErrorsException err)
            {

                string msg = err.Message;
                Console.WriteLine("Message: {0}", msg);

                string fileName = err.Filename;
                Console.WriteLine("Filename: {0}", fileName);

                int lineNumber = err.Line;
                Console.WriteLine("Line: {0}", lineNumber.ToString());

                string bmsg = err.BareMessage;
                Console.WriteLine("BareMessage: {0}", bmsg);

                string source = err.Source;
                Console.WriteLine("Source: {0}", source);

                string st = err.StackTrace;
                Console.WriteLine("StackTrace: {0}", st);

            }
        }

        static void Main(string[]
 args)
        {
            ModifyCustomSection();
        }

    
    }
}

前述の例で使用されている構成抜粋次に示します

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="CustomSection" type="Samples.AspNet.CustomSection, 
      ConfigurationErrorsException, Version=1.0.0.0, Culture=neutral, 
      PublicKeyToken=null" allowDefinition="Everywhere" 
      allowExeDefinition="MachineToApplication" 
      restartOnExternalChanges="true" />
  </configSections>
  <CustomSection fileName="default.txt" maxUsers="10" />
</configuration>
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Configuration.ConfigurationException
        System.Configuration.ConfigurationErrorsException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ConfigurationErrorsException コンストラクタ ()


ConfigurationErrorsException コンストラクタ (String)

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

Dim message As String

Dim instance As New ConfigurationErrorsException(message)
public ConfigurationErrorsException (
    string message
)
public:
ConfigurationErrorsException (
    String^ message
)
public ConfigurationErrorsException (
    String message
)
public function ConfigurationErrorsException
 (
    message : String
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

ConfigurationErrorsException コンストラクタ

ConfigurationErrorsException クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
ConfigurationErrorsException () ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (SerializationInfo, StreamingContext) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, Exception) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, XmlNode) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, XmlReader) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, Exception, XmlNode) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, Exception, XmlReader) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, String, Int32) ConfigurationErrorsException クラス新しインスタンス初期化します。
ConfigurationErrorsException (String, Exception, String, Int32) ConfigurationErrorsException クラス新しインスタンス初期化します。
参照参照

関連項目

ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

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

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

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

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

パラメータ

info

シリアル化する情報保持しているオブジェクト

context

転送元または転送先に関す文脈情報

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

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

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

Dim message As String
Dim inner As Exception

Dim instance As New ConfigurationErrorsException(message,
 inner)
public ConfigurationErrorsException (
    string message,
    Exception inner
)
public:
ConfigurationErrorsException (
    String^ message, 
    Exception^ inner
)
public ConfigurationErrorsException (
    String message, 
    Exception inner
)
public function ConfigurationErrorsException
 (
    message : String, 
    inner : Exception
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

inner

この ConfigurationErrorsException 例外スローされる原因となった例外

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

ConfigurationErrorsException コンストラクタ (String, XmlNode)

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    node As XmlNode _
)
Dim message As String
Dim node As XmlNode

Dim instance As New ConfigurationErrorsException(message,
 node)
public ConfigurationErrorsException (
    string message,
    XmlNode node
)
public:
ConfigurationErrorsException (
    String^ message, 
    XmlNode^ node
)
public ConfigurationErrorsException (
    String message, 
    XmlNode node
)
public function ConfigurationErrorsException
 (
    message : String, 
    node : XmlNode
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

node

この ConfigurationErrorsException 例外スローされる原因となった XmlNode オブジェクト

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

ConfigurationErrorsException コンストラクタ (String, XmlReader)

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

public ConfigurationErrorsException (
    string message,
    XmlReader reader
)
public:
ConfigurationErrorsException (
    String^ message, 
    XmlReader^ reader
)
public ConfigurationErrorsException (
    String message, 
    XmlReader reader
)
public function ConfigurationErrorsException
 (
    message : String, 
    reader : XmlReader
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

reader

この ConfigurationErrorsException 例外スローされる原因となった XmlReader オブジェクト

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

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

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    inner As Exception, _
    node As XmlNode _
)
Dim message As String
Dim inner As Exception
Dim node As XmlNode

Dim instance As New ConfigurationErrorsException(message,
 inner, node)
public ConfigurationErrorsException (
    string message,
    Exception inner,
    XmlNode node
)
public:
ConfigurationErrorsException (
    String^ message, 
    Exception^ inner, 
    XmlNode^ node
)
public ConfigurationErrorsException (
    String message, 
    Exception inner, 
    XmlNode node
)
public function ConfigurationErrorsException
 (
    message : String, 
    inner : Exception, 
    node : XmlNode
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

inner

この ConfigurationErrorsException 例外スローされる原因となった内部例外

node

この ConfigurationErrorsException 例外スローされる原因となった XmlNode オブジェクト

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

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

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

public ConfigurationErrorsException (
    string message,
    Exception inner,
    XmlReader reader
)
public:
ConfigurationErrorsException (
    String^ message, 
    Exception^ inner, 
    XmlReader^ reader
)
public ConfigurationErrorsException (
    String message, 
    Exception inner, 
    XmlReader reader
)
public function ConfigurationErrorsException
 (
    message : String, 
    inner : Exception, 
    reader : XmlReader
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

inner

この ConfigurationErrorsException 例外スローされる原因となった内部例外

reader

この ConfigurationErrorsException 例外スローされる原因となった XmlReader オブジェクト

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

ConfigurationErrorsException コンストラクタ (String, String, Int32)

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

public ConfigurationErrorsException (
    string message,
    string filename,
    int line
)
public:
ConfigurationErrorsException (
    String^ message, 
    String^ filename, 
    int line
)
public ConfigurationErrorsException (
    String message, 
    String filename, 
    int line
)
public function ConfigurationErrorsException
 (
    message : String, 
    filename : String, 
    line : int
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

filename

この ConfigurationErrorsException 例外スローされる原因となった構成ファイルパス

line

この ConfigurationErrorsException 例外スローされた構成ファイル内の行番号

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

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

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

ConfigurationErrorsException クラス新しインスタンス初期化します。

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

public ConfigurationErrorsException (
    string message,
    Exception inner,
    string filename,
    int line
)
public:
ConfigurationErrorsException (
    String^ message, 
    Exception^ inner, 
    String^ filename, 
    int line
)
public ConfigurationErrorsException (
    String message, 
    Exception inner, 
    String filename, 
    int line
)
public function ConfigurationErrorsException
 (
    message : String, 
    inner : Exception, 
    filename : String, 
    line : int
)

パラメータ

message

この ConfigurationErrorsException 例外スローされた理由記述しているメッセージ

inner

この ConfigurationErrorsException 例外スローされる原因となった内部例外

filename

この ConfigurationErrorsException 例外スローされる原因となった構成ファイルパス

line

この ConfigurationErrorsException 例外スローされた構成ファイル内の行番号

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConfigurationErrorsException クラス
ConfigurationErrorsException メンバ
System.Configuration 名前空間

ConfigurationErrorsException プロパティ


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

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ BareMessage オーバーライドされます。 この構成上の例外スローされた理由記述取得します
パブリック プロパティ Data  例外に関する追加ユーザー定義情報提供するキー/値ペアコレクション取得します。 ( Exception から継承されます。)
パブリック プロパティ Errors この ConfigurationErrorsException 例外スローされた理由詳細なエラーコレクション取得します
パブリック プロパティ Filename オーバーライドされます。 この構成上の例外スローされる原因となった構成ファイルパス取得します
パブリック プロパティ HelpLink  例外関連付けられているヘルプ ファイルへのリンクを取得または設定します。 ( Exception から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンス取得します。 ( Exception から継承されます。)
パブリック プロパティ Line オーバーライドされます。 この構成上の例外スローされた構成ファイル内の行番号取得します
パブリック プロパティ Message オーバーライドされます。 この構成上の例外スローされた理由拡張され記述取得します
パブリック プロパティ Source  エラー原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。 ( Exception から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレーム文字列形式取得します。 ( Exception から継承されます。)
パブリック プロパティ TargetSite  現在の例外をスローするメソッド取得します。 ( Exception から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

ConfigurationErrorsException クラス
System.Configuration 名前空間

ConfigurationErrorsException メソッド


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

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetBaseException  派生クラスオーバーライドされた場合、それ以後発生する 1 つ上の例外主要な原因である Exception返します。 ( Exception から継承されます。)
パブリック メソッド GetFilename オーバーロードされます。 この構成上の例外スローされたときに読み取られていた構成ファイルパス取得します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetLineNumber オーバーロードされます。 この構成上の例外スローされたときに処理されていた構成ファイル内の行番号取得します
パブリック メソッド GetObjectData オーバーライドされますファイル名とこの構成上の例外発生した行番号使用して、SerializationInfo オブジェクト設定します
パブリック メソッド GetType  現在のインスタンスランタイム型を取得します。 ( Exception から継承されます。)
パブリック メソッド GetXmlNodeFilename  この構成上の例外スローされたときに、内部 XmlNode オブジェクト読み込みであった構成ファイルパス取得します。 ( ConfigurationException から継承されます。)
パブリック メソッド GetXmlNodeLineNumber  この構成上の例外スローされたときに、内部 XmlNode オブジェクト表していた構成ファイル内の行番号取得します。 ( ConfigurationException から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の例外の文字列形式作成して返します。 ( Exception から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ConfigurationErrorsException クラス
System.Configuration 名前空間

ConfigurationErrorsException メンバ

構成システムエラー発生したときにスローされる例外

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


パブリック コンストラクタパブリック コンストラクタ
( プロテクト コンストラクタ参照)
  名前 説明
パブリック メソッド ConfigurationErrorsException オーバーロードされます。 ConfigurationErrorsException クラス新しインスタンス初期化します。
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド ConfigurationErrorsException オーバーロードされますConfigurationErrorsException クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ BareMessage オーバーライドされます。 この構成上の例外スローされた理由記述取得します
パブリック プロパティ Data  例外に関する追加ユーザー定義情報提供するキー/値ペアコレクション取得します。(Exception から継承されます。)
パブリック プロパティ Errors この ConfigurationErrorsException 例外スローされた理由詳細なエラーコレクション取得します
パブリック プロパティ Filename オーバーライドされます。 この構成上の例外スローされる原因となった構成ファイルパス取得します
パブリック プロパティ HelpLink  例外関連付けられているヘルプ ファイルへのリンクを取得または設定します。(Exception から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンス取得します。(Exception から継承されます。)
パブリック プロパティ Line オーバーライドされます。 この構成上の例外スローされた構成ファイル内の行番号取得します
パブリック プロパティ Message オーバーライドされます。 この構成上の例外スローされた理由拡張され記述取得します
パブリック プロパティ Source  エラー原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。(Exception から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレーム文字列形式取得します。(Exception から継承されます。)
パブリック プロパティ TargetSite  現在の例外をスローするメソッド取得します。(Exception から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetBaseException  派生クラスオーバーライドされた場合、それ以後発生する 1 つ上の例外主要な原因である Exception返します。 (Exception から継承されます。)
パブリック メソッド GetFilename オーバーロードされます。 この構成上の例外スローされたときに読み取られていた構成ファイルパス取得します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetLineNumber オーバーロードされます。 この構成上の例外スローされたときに処理されていた構成ファイル内の行番号取得します
パブリック メソッド GetObjectData オーバーライドされますファイル名とこの構成上の例外発生した行番号使用して、SerializationInfo オブジェクト設定します
パブリック メソッド GetType  現在のインスタンスランタイム型を取得します。 (Exception から継承されます。)
パブリック メソッド GetXmlNodeFilename  この構成上の例外スローされたときに、内部 XmlNode オブジェクト読み込みであった構成ファイルパス取得します。 (ConfigurationException から継承されます。)
パブリック メソッド GetXmlNodeLineNumber  この構成上の例外スローされたときに、内部 XmlNode オブジェクト表していた構成ファイル内の行番号取得します。 (ConfigurationException から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の例外の文字列形式作成して返します。 (Exception から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ConfigurationErrorsException クラス
System.Configuration 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からConfigurationErrorsExceptionを検索した結果を表示しています。
Weblioに収録されているすべての辞書からConfigurationErrorsExceptionを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からConfigurationErrorsException を検索

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

辞書ショートカット

すべての辞書の索引

「ConfigurationErrorsException」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS