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枚举值。 事实上,仅 GenericUriParserOptions.DontUnescapePathDotsAndSlashes 支持 HTTP 和 HTTPS 方案的标志。 将忽略所有其他设置。
默认情况下, 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)
|
显式接口实现
扩展方法
另请参阅