SchemeSettingElementCollection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
public ref class SchemeSettingElementCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Configuration.SchemeSettingElement), AddItemName="add", ClearItemsName="clear", CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMap, RemoveItemName="remove")]
public sealed class SchemeSettingElementCollection : System.Configuration.ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Configuration.SchemeSettingElementCollection), AddItemName="add", ClearItemsName="clear", CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMap, RemoveItemName="remove")]
public sealed class SchemeSettingElementCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Configuration.SchemeSettingElement), AddItemName="add", ClearItemsName="clear", CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMap, RemoveItemName="remove")>]
type SchemeSettingElementCollection = class
inherit ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Configuration.SchemeSettingElementCollection), AddItemName="add", ClearItemsName="clear", CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMap, RemoveItemName="remove")>]
type SchemeSettingElementCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class SchemeSettingElementCollection
Inherits ConfigurationElementCollection
- 継承
-
SchemeSettingElementCollection
- 属性
-
SchemeSettingElementCollection クラスは、構成ファイル内の Uri セクションの下にある <schemeSettings> 要素を表します。
構成ファイルの SchemeSettingElementCollection クラスと <schemeSettings> セクションは汎用的に見えます。これは、アプリケーションが任意のスキームに対して任意の System.GenericUriParserOptions 列挙値を指定できることを意味します。 実際には、HTTP スキームと HTTPS スキームの GenericUriParserOptions.DontUnescapePathDotsAndSlashes フラグのみがサポートされています。 その他の設定はすべて無視されます。
既定では、 System.Uri クラスは、パス圧縮を実行する前に、パーセントでエンコードされたパス区切り記号をエスケープ解除します。 これは、次のような攻撃に対するセキュリティ メカニズムとして実装されました。
http://www.contoso.com/..%2F..%2F/Windows/System32/cmd.exe?/c+dir+c:\
この URI がパーセントエンコード文字を正しく処理していないモジュールに渡されると、サーバーによって次のコマンドが実行される可能性があります。
c:\Windows\System32\cmd.exe /c dir c:\
このため、クラス System.Uri 最初にパス区切り記号をエスケープ解除してから、パス圧縮を適用します。 上記の悪意のある URL をクラス コンストラクター System.Uri 渡した結果、次の URI になります。
http://www.microsoft.com/Windows/System32/cmd.exe?/c+dir+c:\
この既定の動作は、 SchemeSettingElement クラスを使用して、パーセントでエンコードされたパス区切り記号をエスケープ解除しないように変更できます。
コンストラクター
プロパティ
メソッド
| 名前 |
説明 |
|
BaseAdd(ConfigurationElement, Boolean)
|
構成要素コレクションに構成要素を追加します。
(継承元 ConfigurationElementCollection)
|
|
BaseAdd(ConfigurationElement)
|
構成要素を ConfigurationElementCollectionに追加します。
(継承元 ConfigurationElementCollection)
|
|
BaseAdd(Int32, ConfigurationElement)
|
構成要素コレクションに構成要素を追加します。
(継承元 ConfigurationElementCollection)
|
|
BaseClear()
|
すべての構成要素オブジェクトをコレクションから削除します。
(継承元 ConfigurationElementCollection)
|
|
BaseGet(Int32)
|
指定したインデックス位置にある構成要素を取得します。
(継承元 ConfigurationElementCollection)
|
|
BaseGet(Object)
|
指定したキーを持つ構成要素を返します。
(継承元 ConfigurationElementCollection)
|
|
BaseGetAllKeys()
|
ConfigurationElementCollectionに含まれるすべての構成要素のキーの配列を返します。
(継承元 ConfigurationElementCollection)
|
|
BaseGetKey(Int32)
|
指定したインデックス位置にある ConfigurationElement のキーを取得します。
(継承元 ConfigurationElementCollection)
|
|
BaseIndexOf(ConfigurationElement)
|
指定した ConfigurationElementのインデックスを示します。
(継承元 ConfigurationElementCollection)
|
|
BaseIsRemoved(Object)
|
指定したキーを持つ ConfigurationElement が ConfigurationElementCollectionから削除されたかどうかを示します。
(継承元 ConfigurationElementCollection)
|
|
BaseRemove(Object)
|
コレクションから ConfigurationElement を削除します。
(継承元 ConfigurationElementCollection)
|
|
BaseRemoveAt(Int32)
|
指定したインデックス位置にある ConfigurationElement を削除します。
(継承元 ConfigurationElementCollection)
|
|
CopyTo(ConfigurationElement[], Int32)
|
ConfigurationElementCollection の内容を配列にコピーします。
(継承元 ConfigurationElementCollection)
|
|
CreateNewElement()
|
派生クラスでオーバーライドされた場合は、新しい ConfigurationElementを作成します。
(継承元 ConfigurationElementCollection)
|
|
CreateNewElement(String)
|
派生クラスでオーバーライドされたときに新しい ConfigurationElement を作成します。
(継承元 ConfigurationElementCollection)
|
|
DeserializeElement(XmlReader, Boolean)
|
構成ファイルから XML を読み取ります。
(継承元 ConfigurationElement)
|
|
Equals(Object)
|
指定したオブジェクトと ConfigurationElementCollection を比較します。
(継承元 ConfigurationElementCollection)
|
|
GetElementKey(ConfigurationElement)
|
派生クラスでオーバーライドされた場合に、指定した構成要素の要素キーを取得します。
(継承元 ConfigurationElementCollection)
|
|
GetEnumerator()
|
IEnumeratorを反復処理するために使用されるConfigurationElementCollectionを取得します。
(継承元 ConfigurationElementCollection)
|
|
GetHashCode()
|
ConfigurationElementCollection インスタンスを表す一意の値を取得します。
(継承元 ConfigurationElementCollection)
|
|
GetTransformedAssemblyString(String)
|
指定したアセンブリ名の変換されたバージョンを返します。
(継承元 ConfigurationElement)
|
|
GetTransformedTypeString(String)
|
指定した型名の変換されたバージョンを返します。
(継承元 ConfigurationElement)
|
|
GetType()
|
現在のインスタンスの Type を取得します。
(継承元 Object)
|
|
IndexOf(SchemeSettingElement)
|
指定した SchemeSettingElementのインデックス。
|
|
Init()
|
ConfigurationElement オブジェクトを初期状態に設定します。
(継承元 ConfigurationElement)
|
|
InitializeDefault()
|
ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。
(継承元 ConfigurationElement)
|
|
IsElementName(String)
|
指定した ConfigurationElement が ConfigurationElementCollectionに存在するかどうかを示します。
(継承元 ConfigurationElementCollection)
|
|
IsElementRemovable(ConfigurationElement)
|
指定した ConfigurationElement を ConfigurationElementCollectionから削除できるかどうかを示します。
(継承元 ConfigurationElementCollection)
|
|
IsModified()
|
この ConfigurationElementCollection が最後に保存されてから変更されたか、派生クラスでオーバーライドされたときに読み込まれたかを示します。
(継承元 ConfigurationElementCollection)
|
|
IsReadOnly()
|
ConfigurationElementCollection オブジェクトが読み取り専用かどうかを示します。
(継承元 ConfigurationElementCollection)
|
|
ListErrors(IList)
|
この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティ エラーを、渡されたリストに追加します。
(継承元 ConfigurationElement)
|
|
MemberwiseClone()
|
現在の Objectの簡易コピーを作成します。
(継承元 Object)
|
|
OnDeserializeUnrecognizedAttribute(String, String)
|
逆シリアル化中に不明な属性が検出されたかどうかを示す値を取得します。
(継承元 ConfigurationElement)
|
|
OnDeserializeUnrecognizedElement(String, XmlReader)
|
構成システムが例外をスローします。
(継承元 ConfigurationElementCollection)
|
|
OnRequiredPropertyNotFound(String)
|
必要なプロパティが見つからない場合に例外をスローします。
(継承元 ConfigurationElement)
|
|
PostDeserialize()
|
逆シリアル化後に呼び出されます。
(継承元 ConfigurationElement)
|
|
PreSerialize(XmlWriter)
|
シリアル化の前に呼び出されます。
(継承元 ConfigurationElement)
|
|
Reset(ConfigurationElement)
|
派生クラスでオーバーライドされると、ConfigurationElementCollection を変更されていない状態にリセットします。
(継承元 ConfigurationElementCollection)
|
|
ResetModified()
|
派生クラスでオーバーライドされたときに、IsModified() プロパティの値を false にリセットします。
(継承元 ConfigurationElementCollection)
|
|
SerializeElement(XmlWriter, Boolean)
|
派生クラスでオーバーライドされると、構成データを構成ファイルの XML 要素に書き込みます。
(継承元 ConfigurationElementCollection)
|
|
SerializeToXmlElement(XmlWriter, String)
|
派生クラスで実装されるときに、この構成要素の外部タグを構成ファイルに書き込みます。
(継承元 ConfigurationElement)
|
|
SetPropertyValue(ConfigurationProperty, Object, Boolean)
|
プロパティを指定した値に設定します。
(継承元 ConfigurationElement)
|
|
SetReadOnly()
|
IsReadOnly() オブジェクトとすべてのサブ要素の ConfigurationElementCollection プロパティを設定します。
(継承元 ConfigurationElementCollection)
|
|
ToString()
|
現在のオブジェクトを表す文字列を返します。
(継承元 Object)
|
|
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)
|
構成階層のさまざまなレベルから構成情報をマージする効果を元に戻します。
(継承元 ConfigurationElementCollection)
|
明示的なインターフェイスの実装
拡張メソッド
こちらもご覧ください