NameValueConfigurationCollection NameValueConfigurationCollection NameValueConfigurationCollection NameValueConfigurationCollection Class

定義

NameValueConfigurationElement オブジェクトのコレクションを含んでいます。Contains a collection of NameValueConfigurationElement objects. このクラスは継承できません。This class cannot be inherited.

public ref class NameValueConfigurationCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Configuration.NameValueConfigurationElement), AddItemName="add", ClearItemsName="clear", CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMap, RemoveItemName="remove")]
[System.Configuration.ConfigurationCollection(typeof(System.Configuration.NameValueConfigurationElement))]
public sealed class NameValueConfigurationCollection : System.Configuration.ConfigurationElementCollection
type NameValueConfigurationCollection = class
    inherit ConfigurationElementCollection
Public NotInheritable Class NameValueConfigurationCollection
Inherits ConfigurationElementCollection
継承
属性

次のコード例は、使用する方法を示します、NameValueConfigurationCollection型。The following code example demonstrates how to use the NameValueConfigurationCollection type.

#region Using directives

using System;
using System.Configuration;
using System.Web.Configuration;
using System.Collections;
using System.Text;

#endregion

namespace Samples.AspNet
{
    class UsingNameValueConfigurationCollection
    {
        static void Main(string[] args)
        {
            try
            {
                // Set the path of the config file.
                // Make sure that you have a Web site on the
                // same server called TestConfig.
                string configPath = "/TestConfig";

                // Get the Web application configuration object.
                Configuration config =
                  WebConfigurationManager.OpenWebConfiguration(configPath);

                // Get the section related object.
                AnonymousIdentificationSection configSection =
                  (AnonymousIdentificationSection)config.GetSection
                  ("system.web/anonymousIdentification");

                // Display title and info.
                Console.WriteLine("Configuration Info");
                Console.WriteLine();

                // Display Config details.
                Console.WriteLine("File Path: {0}",
                  config.FilePath);
                Console.WriteLine("Section Path: {0}",
                  configSection.SectionInformation.Name);
                Console.WriteLine();

                // Create a NameValueConfigurationCollection object.
                NameValueConfigurationCollection myNameValConfigCollection =
                  new NameValueConfigurationCollection();

                foreach (PropertyInformation propertyItem in
                  configSection.ElementInformation.Properties)
                {
                    // Assign  domain name.
                    if (propertyItem.Name == "domain")
                        propertyItem.Value = "MyDomain";

                    if (propertyItem.Value != null)
                    {
                        // Enable SSL for cookie exchange.
                        if (propertyItem.Name == "cookieRequireSSL")
                            propertyItem.Value = true;

                        NameValueConfigurationElement nameValConfigElement =
                            new NameValueConfigurationElement
                                (propertyItem.Name.ToString(), propertyItem.Value.ToString());

                        // Add a NameValueConfigurationElement
                        // to the collection.
                        myNameValConfigCollection.Add(nameValConfigElement);
                       
                    }
                }

                // Count property.
                Console.WriteLine("Collection Count: {0}",
                 myNameValConfigCollection.Count);

                // Item property.
                Console.WriteLine("Value of property 'enabled': {0}",
                 myNameValConfigCollection["enabled"].Value);

                // Display the contents of the collection.
                foreach (NameValueConfigurationElement configItem
                  in myNameValConfigCollection)
                {
                    Console.WriteLine();
                    Console.WriteLine("Configuration Details:");
                    Console.WriteLine("Name: {0}", configItem.Name);
                    Console.WriteLine("Value: {0}", configItem.Value);
                }

                // Assign the domain calue.
                configSection.Domain = myNameValConfigCollection["domain"].Value;
                // Assign the SSL required value.
                if (myNameValConfigCollection["cookieRequireSSL"].Value == "true")
                    configSection.CookieRequireSSL = true;

                // Remove domain from the collection.
                NameValueConfigurationElement myConfigElement =
                    myNameValConfigCollection["domain"];
                // Remove method.
                myNameValConfigCollection.Remove(myConfigElement);

                // Save changes to the configuration file.
                // This modifies the Web.config of the TestConfig site.
                config.Save(ConfigurationSaveMode.Minimal, true);

                // Clear the collection.
                myNameValConfigCollection.Clear();
            }

            catch (Exception e)
            {
                // Unknown error.
                Console.WriteLine(e.ToString());
            }

            // Display and wait.
            Console.ReadLine();
        }
    }
}
Imports System
Imports System.Configuration
Imports System.Web
Imports System.Collections
Imports System.Text


Namespace Samples.AspNet
    Class UsingNameValueConfigurationCollection
        Public Shared Sub Main(ByVal args As String())
            Try
                ' Set the path of the config file. 
                ' Make sure that you have a Web site on the
                ' same server called TestConfig.
                Dim configPath As String = "/TestConfig"

                ' Get the Web application configuration object.
                Dim config As Configuration = _
                System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(configPath)

                ' Get the section related object.
                Dim configSection _
                As System.Web.Configuration.AnonymousIdentificationSection = _
                DirectCast(config.GetSection("system.web/anonymousIdentification"),  _
                System.Web.Configuration.AnonymousIdentificationSection)

                ' Display title and info.
                Console.WriteLine("Configuration Info")
                Console.WriteLine()

                ' Display Config details.
                Console.WriteLine("File Path: {0}", config.FilePath)
                Console.WriteLine("Section Path: {0}", configSection.SectionInformation.Name)
                Console.WriteLine()

                ' Create a NameValueConfigurationCollection object.
                Dim myNameValConfigCollection As New NameValueConfigurationCollection()

                For Each propertyItem As PropertyInformation In configSection.ElementInformation.Properties
                    ' Assign  domain name.
                    If propertyItem.Name = "domain" Then
                        propertyItem.Value = "MyDomain"
                    End If

                    If propertyItem.Value <> Nothing Then
                        ' Enable SSL for cookie exchange.
                        If propertyItem.Name = "cookieRequireSSL" Then
                            propertyItem.Value = True
                        End If

                        Dim nameValConfigElement As New NameValueConfigurationElement(propertyItem.Name.ToString(), propertyItem.Value.ToString())

                        ' Add a NameValueConfigurationElement
                        ' to the collection.

                        myNameValConfigCollection.Add(nameValConfigElement)
                    End If
                Next

                ' Count property.
                Console.WriteLine("Collection Count: {0}", myNameValConfigCollection.Count)

                ' Item property.
                Console.WriteLine("Value of property 'enabled': {0}", myNameValConfigCollection("enabled").Value)

                ' Display the contents of the collection.
                For Each configItem As NameValueConfigurationElement In myNameValConfigCollection
                    Console.WriteLine()
                    Console.WriteLine("Configuration Details:")
                    Console.WriteLine("Name: {0}", configItem.Name)
                    Console.WriteLine("Value: {0}", configItem.Value)
                Next

                ' Assign the domain calue.
                configSection.Domain = myNameValConfigCollection("domain").Value
                ' Assign the SSL required value.
                If myNameValConfigCollection("cookieRequireSSL").Value = "true" Then
                    configSection.CookieRequireSSL = True
                End If

                ' Remove domain from the collection.
                Dim myConfigElement As NameValueConfigurationElement = myNameValConfigCollection("domain")
                ' Remove method.
                myNameValConfigCollection.Remove(myConfigElement)

                ' Save changes to the configuration file.
                ' This modifies the Web.config of the TestConfig site.
                config.Save(ConfigurationSaveMode.Minimal, True)

                ' Clear the collection.
                myNameValConfigCollection.Clear()
            Catch e As Exception

                ' Unknown error.
                Console.WriteLine(e.ToString())
            End Try

            ' Display and wait.
            Console.ReadLine()
        End Sub
    End Class
End Namespace

注釈

NameValueConfigurationCollectionクラスでは、プログラムでのコレクションにアクセスできます。NameValueConfigurationElementオブジェクト。The NameValueConfigurationCollection class allows you to programmatically access a collection of NameValueConfigurationElement objects.

コンストラクター

NameValueConfigurationCollection() NameValueConfigurationCollection() NameValueConfigurationCollection() NameValueConfigurationCollection()

NameValueConfigurationCollection クラスの新しいインスタンスを初期化します。Initializes a new instance of the NameValueConfigurationCollection class.

プロパティ

AddElementName AddElementName AddElementName AddElementName

派生クラスでオーバーライドされると、ConfigurationElement での追加操作に関連付ける ConfigurationElementCollection の名前を取得または設定します。Gets or sets the name of the ConfigurationElement to associate with the add operation in the ConfigurationElementCollection when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
AllKeys AllKeys AllKeys AllKeys

NameValueConfigurationCollection に格納されているすべての項目のキーを取得します。Gets the keys to all items contained in the NameValueConfigurationCollection.

ClearElementName ClearElementName ClearElementName ClearElementName

派生クラスでオーバーライドされると、ConfigurationElement での消去操作に関連付ける ConfigurationElementCollection の名前を取得または設定します。Gets or sets the name for the ConfigurationElement to associate with the clear operation in the ConfigurationElementCollection when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
CollectionType CollectionType CollectionType CollectionType

ConfigurationElementCollection の型を取得します。Gets the type of the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
Count Count Count Count

コレクション内の要素の数を取得します。Gets the number of elements in the collection.

(Inherited from ConfigurationElementCollection)
CurrentConfiguration CurrentConfiguration CurrentConfiguration CurrentConfiguration

現在の Configuration インスタンスが属している構成階層を表す最上位の ConfigurationElement インスタンスへの参照を取得します。Gets a reference to the top-level Configuration instance that represents the configuration hierarchy that the current ConfigurationElement instance belongs to.

(Inherited from ConfigurationElement)
ElementInformation ElementInformation ElementInformation ElementInformation

ElementInformation オブジェクトのカスタマイズできない情報と機能を格納する ConfigurationElement オブジェクトを取得します。Gets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object.

(Inherited from ConfigurationElement)
ElementName ElementName ElementName ElementName

派生クラスでオーバーライドされると、構成ファイル内のこの要素のコレクションを識別するために使用する名前を取得します。Gets the name used to identify this collection of elements in the configuration file when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
ElementProperty ElementProperty ElementProperty ElementProperty

ConfigurationElementProperty オブジェクト自体を表す ConfigurationElement オブジェクトを取得します。Gets the ConfigurationElementProperty object that represents the ConfigurationElement object itself.

(Inherited from ConfigurationElement)
EmitClear EmitClear EmitClear EmitClear

コレクションが削除されたかどうかを示す値を取得または設定します。Gets or sets a value that specifies whether the collection has been cleared.

(Inherited from ConfigurationElementCollection)
EvaluationContext EvaluationContext EvaluationContext EvaluationContext

ContextInformation オブジェクトの ConfigurationElement オブジェクトを取得します。Gets the ContextInformation object for the ConfigurationElement object.

(Inherited from ConfigurationElement)
HasContext HasContext HasContext HasContext

CurrentConfiguration プロパティが null であるかどうかを示す値を取得します。Gets a value that indicates whether the CurrentConfiguration property is null.

(Inherited from ConfigurationElement)
IsSynchronized IsSynchronized IsSynchronized IsSynchronized

コレクションへのアクセスの同期がとられているかどうかを示す値を取得します。Gets a value indicating whether access to the collection is synchronized.

(Inherited from ConfigurationElementCollection)
Item[ConfigurationProperty] Item[ConfigurationProperty] Item[ConfigurationProperty] Item[ConfigurationProperty]

この構成要素のプロパティまたは属性を取得または設定します。Gets or sets a property or attribute of this configuration element.

(Inherited from ConfigurationElement)
Item[String] Item[String] Item[String] Item[String]

指定されたパラメーターに基づいて、NameValueConfigurationElement オブジェクトを取得または設定します。Gets or sets the NameValueConfigurationElement object based on the supplied parameter.

LockAllAttributesExcept LockAllAttributesExcept LockAllAttributesExcept LockAllAttributesExcept

ロックされている属性のコレクションを取得します。Gets the collection of locked attributes.

(Inherited from ConfigurationElement)
LockAllElementsExcept LockAllElementsExcept LockAllElementsExcept LockAllElementsExcept

ロックされている要素のコレクションを取得します。Gets the collection of locked elements.

(Inherited from ConfigurationElement)
LockAttributes LockAttributes LockAttributes LockAttributes

ロックされている属性のコレクションを取得します。Gets the collection of locked attributes

(Inherited from ConfigurationElement)
LockElements LockElements LockElements LockElements

ロックされている要素のコレクションを取得します。Gets the collection of locked elements.

(Inherited from ConfigurationElement)
LockItem LockItem LockItem LockItem

要素がロックされているかどうかを示す値を取得または設定します。Gets or sets a value indicating whether the element is locked.

(Inherited from ConfigurationElement)
Properties Properties Properties Properties

プロパティのコレクションを取得します。Gets the collection of properties.

(Inherited from ConfigurationElement)
RemoveElementName RemoveElementName RemoveElementName RemoveElementName

派生クラスでオーバーライドされると、ConfigurationElement での削除操作に関連付ける ConfigurationElementCollection の名前を取得または設定します。Gets or sets the name of the ConfigurationElement to associate with the remove operation in the ConfigurationElementCollection when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
SyncRoot SyncRoot SyncRoot SyncRoot

ConfigurationElementCollection へのアクセスを同期するために使用するオブジェクトを取得します。Gets an object used to synchronize access to the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
ThrowOnDuplicate ThrowOnDuplicate ThrowOnDuplicate ThrowOnDuplicate

重複する ConfigurationElementConfigurationElementCollection に追加しようとしたときに、例外をスローするかどうかを示す値を取得します。Gets a value indicating whether an attempt to add a duplicate ConfigurationElement to the ConfigurationElementCollection will cause an exception to be thrown.

(Inherited from ConfigurationElementCollection)

メソッド

Add(NameValueConfigurationElement) Add(NameValueConfigurationElement) Add(NameValueConfigurationElement) Add(NameValueConfigurationElement)

NameValueConfigurationElement オブジェクトをコレクションに追加します。Adds a NameValueConfigurationElement object to the collection.

BaseAdd(ConfigurationElement) BaseAdd(ConfigurationElement) BaseAdd(ConfigurationElement) BaseAdd(ConfigurationElement)

ConfigurationElementCollection に構成要素を追加します。Adds a configuration element to the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
BaseAdd(ConfigurationElement, Boolean) BaseAdd(ConfigurationElement, Boolean) BaseAdd(ConfigurationElement, Boolean) BaseAdd(ConfigurationElement, Boolean)

構成要素のコレクションに構成要素を追加します。Adds a configuration element to the configuration element collection.

(Inherited from ConfigurationElementCollection)
BaseAdd(Int32, ConfigurationElement) BaseAdd(Int32, ConfigurationElement) BaseAdd(Int32, ConfigurationElement) BaseAdd(Int32, ConfigurationElement)

構成要素のコレクションに構成要素を追加します。Adds a configuration element to the configuration element collection.

(Inherited from ConfigurationElementCollection)
BaseClear() BaseClear() BaseClear() BaseClear()

コレクションからすべての構成要素オブジェクトを削除します。Removes all configuration element objects from the collection.

(Inherited from ConfigurationElementCollection)
BaseGet(Int32) BaseGet(Int32) BaseGet(Int32) BaseGet(Int32)

指定したインデックス位置にある構成要素を取得します。Gets the configuration element at the specified index location.

(Inherited from ConfigurationElementCollection)
BaseGet(Object) BaseGet(Object) BaseGet(Object) BaseGet(Object)

指定したキーを持つ構成要素を返します。Returns the configuration element with the specified key.

(Inherited from ConfigurationElementCollection)
BaseGetAllKeys() BaseGetAllKeys() BaseGetAllKeys() BaseGetAllKeys()

ConfigurationElementCollection に格納されているすべての構成要素のキーの配列を返します。Returns an array of the keys for all of the configuration elements contained in the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
BaseGetKey(Int32) BaseGetKey(Int32) BaseGetKey(Int32) BaseGetKey(Int32)

指定したインデックス位置にある ConfigurationElement のキーを取得します。Gets the key for the ConfigurationElement at the specified index location.

(Inherited from ConfigurationElementCollection)
BaseIndexOf(ConfigurationElement) BaseIndexOf(ConfigurationElement) BaseIndexOf(ConfigurationElement) BaseIndexOf(ConfigurationElement)

指定した ConfigurationElement のインデックスを示します。Indicates the index of the specified ConfigurationElement.

(Inherited from ConfigurationElementCollection)
BaseIsRemoved(Object) BaseIsRemoved(Object) BaseIsRemoved(Object) BaseIsRemoved(Object)

指定したキーを持つ ConfigurationElementConfigurationElementCollection から削除されているかどうかを示します。Indicates whether the ConfigurationElement with the specified key has been removed from the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
BaseRemove(Object) BaseRemove(Object) BaseRemove(Object) BaseRemove(Object)

ConfigurationElement をコレクションから削除します。Removes a ConfigurationElement from the collection.

(Inherited from ConfigurationElementCollection)
BaseRemoveAt(Int32) BaseRemoveAt(Int32) BaseRemoveAt(Int32) BaseRemoveAt(Int32)

指定したインデックス位置にある ConfigurationElement を削除します。Removes the ConfigurationElement at the specified index location.

(Inherited from ConfigurationElementCollection)
Clear() Clear() Clear() Clear()

NameValueConfigurationCollection を消去します。Clears the NameValueConfigurationCollection.

CopyTo(ConfigurationElement[], Int32) CopyTo(ConfigurationElement[], Int32) CopyTo(ConfigurationElement[], Int32) CopyTo(ConfigurationElement[], Int32)

ConfigurationElementCollection の内容を配列にコピーします。Copies the contents of the ConfigurationElementCollection to an array.

(Inherited from ConfigurationElementCollection)
CreateNewElement() CreateNewElement() CreateNewElement() CreateNewElement()

派生クラスでオーバーライドされると、新しい ConfigurationElement を作成します。When overridden in a derived class, creates a new ConfigurationElement.

(Inherited from ConfigurationElementCollection)
CreateNewElement(String) CreateNewElement(String) CreateNewElement(String) CreateNewElement(String)

派生クラスでオーバーライドされると、新しい ConfigurationElement を作成します。Creates a new ConfigurationElement when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
DeserializeElement(XmlReader, Boolean) DeserializeElement(XmlReader, Boolean) DeserializeElement(XmlReader, Boolean) DeserializeElement(XmlReader, Boolean)

構成ファイルから XML を読み取ります。Reads XML from the configuration file.

(Inherited from ConfigurationElement)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

ConfigurationElementCollection と指定したオブジェクトを比較します。Compares the ConfigurationElementCollection to the specified object.

(Inherited from ConfigurationElementCollection)
GetElementKey(ConfigurationElement) GetElementKey(ConfigurationElement) GetElementKey(ConfigurationElement) GetElementKey(ConfigurationElement)

派生クラスでオーバーライドされると、指定した構成要素の要素キーを取得します。Gets the element key for a specified configuration element when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

IEnumerator の反復処理に使用する ConfigurationElementCollection を取得します。Gets an IEnumerator which is used to iterate through the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

ConfigurationElementCollection インスタンスを表す一意の値を取得します。Gets a unique value representing the ConfigurationElementCollection instance.

(Inherited from ConfigurationElementCollection)
GetTransformedAssemblyString(String) GetTransformedAssemblyString(String) GetTransformedAssemblyString(String) GetTransformedAssemblyString(String)

指定されたアセンブリ名を変換して返します。Returns the transformed version of the specified assembly name.

(Inherited from ConfigurationElement)
GetTransformedTypeString(String) GetTransformedTypeString(String) GetTransformedTypeString(String) GetTransformedTypeString(String)

指定された型名を変換して返します。Returns the transformed version of the specified type name.

(Inherited from ConfigurationElement)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
Init() Init() Init() Init()

ConfigurationElement オブジェクトを初期状態に設定します。Sets the ConfigurationElement object to its initial state.

(Inherited from ConfigurationElement)
InitializeDefault() InitializeDefault() InitializeDefault() InitializeDefault()

ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。Used to initialize a default set of values for the ConfigurationElement object.

(Inherited from ConfigurationElement)
IsElementName(String) IsElementName(String) IsElementName(String) IsElementName(String)

指定した ConfigurationElementConfigurationElementCollection に存在するかどうかを示します。Indicates whether the specified ConfigurationElement exists in the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
IsElementRemovable(ConfigurationElement) IsElementRemovable(ConfigurationElement) IsElementRemovable(ConfigurationElement) IsElementRemovable(ConfigurationElement)

指定した ConfigurationElementConfigurationElementCollection から削除できるかどうかを示します。Indicates whether the specified ConfigurationElement can be removed from the ConfigurationElementCollection.

(Inherited from ConfigurationElementCollection)
IsModified() IsModified() IsModified() IsModified()

派生クラスでオーバーライドされると、この ConfigurationElementCollection が最後に保存された後または読み込まれた後に、変更されているかどうかを示します。Indicates whether this ConfigurationElementCollection has been modified since it was last saved or loaded when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
IsReadOnly() IsReadOnly() IsReadOnly() IsReadOnly()

ConfigurationElementCollection オブジェクトが読み取り専用かどうかを示します。Indicates whether the ConfigurationElementCollection object is read only.

(Inherited from ConfigurationElementCollection)
ListErrors(IList) ListErrors(IList) ListErrors(IList) ListErrors(IList)

この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。Adds the invalid-property errors in this ConfigurationElement object, and in all subelements, to the passed list.

(Inherited from ConfigurationElement)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
OnDeserializeUnrecognizedAttribute(String, String) OnDeserializeUnrecognizedAttribute(String, String) OnDeserializeUnrecognizedAttribute(String, String) OnDeserializeUnrecognizedAttribute(String, String)

逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。Gets a value indicating whether an unknown attribute is encountered during deserialization.

(Inherited from ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader) OnDeserializeUnrecognizedElement(String, XmlReader) OnDeserializeUnrecognizedElement(String, XmlReader) OnDeserializeUnrecognizedElement(String, XmlReader)

構成システムが例外をスローするようにします。Causes the configuration system to throw an exception.

(Inherited from ConfigurationElementCollection)
OnRequiredPropertyNotFound(String) OnRequiredPropertyNotFound(String) OnRequiredPropertyNotFound(String) OnRequiredPropertyNotFound(String)

必要なプロパティが見つからないと例外がスローされます。Throws an exception when a required property is not found.

(Inherited from ConfigurationElement)
PostDeserialize() PostDeserialize() PostDeserialize() PostDeserialize()

逆シリアル化後に呼び出されます。Called after deserialization.

(Inherited from ConfigurationElement)
PreSerialize(XmlWriter) PreSerialize(XmlWriter) PreSerialize(XmlWriter) PreSerialize(XmlWriter)

シリアル化前に呼び出されます。Called before serialization.

(Inherited from ConfigurationElement)
Remove(NameValueConfigurationElement) Remove(NameValueConfigurationElement) Remove(NameValueConfigurationElement) Remove(NameValueConfigurationElement)

指定されたパラメーターに基づいて、NameValueConfigurationElement オブジェクトをコレクションから削除します。Removes a NameValueConfigurationElement object from the collection based on the provided parameter.

Remove(String) Remove(String) Remove(String) Remove(String)

指定されたパラメーターに基づいて、NameValueConfigurationElement オブジェクトをコレクションから削除します。Removes a NameValueConfigurationElement object from the collection based on the provided parameter.

Reset(ConfigurationElement) Reset(ConfigurationElement) Reset(ConfigurationElement) Reset(ConfigurationElement)

派生クラスでオーバーライドされると、ConfigurationElementCollection を変更されていない状態にリセットします。Resets the ConfigurationElementCollection to its unmodified state when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
ResetModified() ResetModified() ResetModified() ResetModified()

派生クラスでオーバーライドされると、IsModified() プロパティの値を false にリセットします。Resets the value of the IsModified() property to false when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
SerializeElement(XmlWriter, Boolean) SerializeElement(XmlWriter, Boolean) SerializeElement(XmlWriter, Boolean) SerializeElement(XmlWriter, Boolean)

派生クラスでオーバーライドされると、構成データを構成ファイルの XML 要素に書き込みます。Writes the configuration data to an XML element in the configuration file when overridden in a derived class.

(Inherited from ConfigurationElementCollection)
SerializeToXmlElement(XmlWriter, String) SerializeToXmlElement(XmlWriter, String) SerializeToXmlElement(XmlWriter, String) SerializeToXmlElement(XmlWriter, String)

派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。Writes the outer tags of this configuration element to the configuration file when implemented in a derived class.

(Inherited from ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean) SetPropertyValue(ConfigurationProperty, Object, Boolean) SetPropertyValue(ConfigurationProperty, Object, Boolean) SetPropertyValue(ConfigurationProperty, Object, Boolean)

プロパティを指定した値に設定します。Sets a property to the specified value.

(Inherited from ConfigurationElement)
SetReadOnly() SetReadOnly() SetReadOnly() SetReadOnly()

IsReadOnly() オブジェクトとすべてのサブ要素の ConfigurationElementCollection プロパティを設定します。Sets the IsReadOnly() property for the ConfigurationElementCollection object and for all sub-elements.

(Inherited from ConfigurationElementCollection)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode) Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode) Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode) Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

構成階層の異なるレベルの構成情報をマージした効果を元に戻します。Reverses the effect of merging configuration information from different levels of the configuration hierarchy.

(Inherited from ConfigurationElementCollection)

明示的なインターフェイスの実装

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

ConfigurationElementCollection を配列にコピーします。Copies the ConfigurationElementCollection to an array.

(Inherited from ConfigurationElementCollection)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

要素をキャストするIEnumerable指定した型にします。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

要素をフィルター処理、IEnumerable指定した型に基づいています。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

クエリの並列化を有効にします。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

変換、IEnumerableIQueryableします。Converts an IEnumerable to an IQueryable.

適用対象

こちらもご覧ください