RuleSettingsCollection RuleSettingsCollection RuleSettingsCollection RuleSettingsCollection Class

定義

RuleSettings オブジェクトのコレクション。A collection of RuleSettings objects. このクラスは継承できません。This class cannot be inherited.

public ref class RuleSettingsCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.RuleSettings))]
public sealed class RuleSettingsCollection : System.Configuration.ConfigurationElementCollection
type RuleSettingsCollection = class
    inherit ConfigurationElementCollection
Public NotInheritable Class RuleSettingsCollection
Inherits ConfigurationElementCollection
継承
属性

次のコード例を使用する方法を示しています、RuleSettingsCollection型。The following code example shows how to use the RuleSettingsCollection type. このコード例が示されている例の一部、HealthMonitoringSectionクラス。This code example is part of a larger example provided for the HealthMonitoringSection class.


// Add a RuleSettings object to the Rules collection property.
RuleSettings ruleSetting = new RuleSettings("All Errors Default",
    "All Errors", "EventLogProvider");
ruleSetting.Name = "All Errors Custom";
ruleSetting.EventName = "All Errors";
ruleSetting.Provider = "EventLogProvider";
ruleSetting.Profile = "Custom";
ruleSetting.MaxLimit = Int32.MaxValue;
ruleSetting.MinInstances = 1;
ruleSetting.MinInterval = TimeSpan.Parse("00:00:30");
ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll";
healthMonitoringSection.Rules.Add(ruleSetting);

// Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("All Errors Default", 
    "All Errors", "EventLogProvider"));

// Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Default",
    "Failure Audits", "EventLogProvider", "Default", 1, Int32.MaxValue,
    new TimeSpan(0, 1, 0)));

// Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Custom",
    "Failure Audits", "EventLogProvider", "Custom", 1, Int32.MaxValue,
    new TimeSpan(0, 1, 0), "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"));

// Insert an RuleSettings object into the Rules collection property.
healthMonitoringSection.Rules.Insert(1,
    new RuleSettings("All Errors Default2",
        "All Errors", "EventLogProvider"));

// Display contents of the Rules collection property
Console.WriteLine(
    "Rules Collection contains {0} values:", healthMonitoringSection.Rules.Count);

// Display all elements.
for (System.Int32 i = 0; i < healthMonitoringSection.Rules.Count; i++)
{
ruleSetting = healthMonitoringSection.Rules[i];
string name = ruleSetting.Name;
string eventName = ruleSetting.EventName;
string provider = ruleSetting.Provider;
string profile = ruleSetting.Profile;
int minInstances = ruleSetting.MinInstances;
int maxLimit = ruleSetting.MaxLimit;
TimeSpan minInterval = ruleSetting.MinInterval;
string custom = ruleSetting.Custom;
    string item = "Name='" + name + "', EventName='" + eventName +
        "', Provider =  '" + provider + "', Profile =  '" + profile +
        "', MinInstances =  '" + minInstances + "', MaxLimit =  '" + maxLimit +
        "', MinInterval =  '" + minInterval + "', Custom =  '" + custom + "'";
    Console.WriteLine("  Item {0}: {1}", i, item);
}

// See if the Rules collection property contains the RuleSettings 'All Errors Default'.
Console.WriteLine("EventMappings contains 'All Errors Default': {0}.",
    healthMonitoringSection.Rules.Contains("All Errors Default"));

// Get the index of the 'All Errors Default' RuleSettings in the Rules collection property.
Console.WriteLine("EventMappings index for 'All Errors Default': {0}.",
    healthMonitoringSection.Rules.IndexOf("All Errors Default"));

// Get a named RuleSettings
ruleSetting = healthMonitoringSection.Rules["All Errors Default"];

// Remove a RuleSettings object from the Rules collection property.
healthMonitoringSection.Rules.Remove("All Errors Default");

// Remove a RuleSettings object from the Rules collection property.
healthMonitoringSection.Rules.RemoveAt(0);

// Clear all RuleSettings object from the Rules collection property.
healthMonitoringSection.Rules.Clear();


' Add a RuleSettings object to the Rules collection property.
Dim ruleSetting As RuleSettings = new RuleSettings("All Errors Default", _
    "All Errors", "EventLogProvider")
ruleSetting.Name = "All Errors Custom"
ruleSetting.EventName = "All Errors"
ruleSetting.Provider = "EventLogProvider"
ruleSetting.Profile = "Custom"
ruleSetting.MaxLimit = Int32.MaxValue
ruleSetting.MinInstances = 1
ruleSetting.MinInterval = TimeSpan.Parse("00:00:30")
ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"
healthMonitoringSection.Rules.Add(ruleSetting)

' Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("All Errors Default", _
    "All Errors", "EventLogProvider"))

' Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Default", _
    "Failure Audits", "EventLogProvider", "Default", 1, Int32.MaxValue, _
    new TimeSpan(0, 1, 0)))

' Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Custom", _
    "Failure Audits", "EventLogProvider", "Custom", 1, Int32.MaxValue, _
    new TimeSpan(0, 1, 0), "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"))

' Insert an RuleSettings object into the Rules collection property.
healthMonitoringSection.Rules.Insert(1, _
    new RuleSettings("All Errors Default2", _
        "All Errors", "EventLogProvider"))

' Display contents of the Rules collection property
Console.WriteLine( _
    "Rules Collection contains {0} values:", healthMonitoringSection.Rules.Count)

' Display all elements.
For i As System.Int32 = 0 To healthMonitoringSection.Rules.Count -1
ruleSetting = healthMonitoringSection.Rules(i)
Dim name As String = ruleSetting.Name
Dim eventName As String = ruleSetting.EventName
Dim provider As String = ruleSetting.Provider
Dim profile As String = ruleSetting.Profile
Dim minInstances As Integer = ruleSetting.MinInstances
Dim maxLimit As Integer = ruleSetting.MaxLimit
Dim minInterval As TimeSpan = ruleSetting.MinInterval
Dim custom As String = ruleSetting.Custom
    Dim item As String = "Name='" & name & "', EventName='" & eventName & _
        "', Provider =  '" & provider & "', Profile =  '" & profile & _
        "', MinInstances =  '" & minInstances & "', MaxLimit =  '" & maxLimit & _
        "', MinInterval =  '" & minInterval.ToString() & "', Custom =  '" & custom & "'"
    Console.WriteLine("  Item {0}: {1}", i, item)
Next

' See if the Rules collection property contains the RuleSettings 'All Errors Default'.
Console.WriteLine("EventMappings contains 'All Errors Default': {0}.", _
    healthMonitoringSection.Rules.Contains("All Errors Default"))

' Get the index of the 'All Errors Default' RuleSettings in the Rules collection property.
Console.WriteLine("EventMappings index for 'All Errors Default': {0}.", _
    healthMonitoringSection.Rules.IndexOf("All Errors Default"))

' Get a named RuleSettings
ruleSetting = healthMonitoringSection.Rules("All Errors Default")

' Remove a RuleSettings object from the Rules collection property.
healthMonitoringSection.Rules.Remove("All Errors Default")

' Remove a RuleSettings object from the Rules collection property.
healthMonitoringSection.Rules.RemoveAt(0)

' Clear all RuleSettings object from the Rules collection property.
healthMonitoringSection.Rules.Clear()

注釈

RuleSettings イベント ルールを定義するオブジェクトが使用されます。RuleSettings objects are used to define event rules.

コンストラクター

RuleSettingsCollection() RuleSettingsCollection() RuleSettingsCollection() RuleSettingsCollection()

RuleSettingsCollection クラスの新しいインスタンスを初期化します。Initializes a new instance of the RuleSettingsCollection 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)
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[Int32] Item[Int32] Item[Int32] Item[Int32]

指定した数値インデックス位置にある RuleSettings オブジェクトを取得します。Gets the RuleSettings object at the specified numeric index.

Item[String] Item[String] Item[String] Item[String]

コレクション内の指定されたキーに基づいて、RuleSettings オブジェクトを取得します。Gets the RuleSettings object based on the specified key in the collection.

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(RuleSettings) Add(RuleSettings) Add(RuleSettings) Add(RuleSettings)

RuleSettings オブジェクトをコレクションに追加します。Adds a RuleSettings 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()

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

Contains(String) Contains(String) Contains(String) Contains(String)

指定した名前の RuleSettings オブジェクトがコレクションに格納されている場合は true を返します。Returns true if the collection contains a RuleSettings object with the specified name.

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)
IndexOf(String) IndexOf(String) IndexOf(String) IndexOf(String)

コレクション内の、指定した名前の RuleSettings オブジェクトのインデックスを検索します。Finds the index of a RuleSettings object in the collection with the specified name.

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)
Insert(Int32, RuleSettings) Insert(Int32, RuleSettings) Insert(Int32, RuleSettings) Insert(Int32, RuleSettings)

指定した RuleSettings オブジェクトを、コレクションの指定したインデックス位置に追加します。Adds the specified RuleSettings object to the specified index point in the collection.

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(String) Remove(String) Remove(String) Remove(String)

RuleSettings オブジェクトをコレクションから削除します。Removes a RuleSettings object from the collection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

指定したインデックス位置にある RuleSettings オブジェクトをコレクションから削除します。Removes a RuleSettings object at the specified index location from the collection.

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.

適用対象

こちらもご覧ください