SecurityTokenHandlerElementCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示配置文件中的 <securityTokenHandlers>
元素。 此类不能被继承。
public ref class SecurityTokenHandlerElementCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.IdentityModel.Configuration.CustomTypeElement), CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)]
public sealed class SecurityTokenHandlerElementCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.IdentityModel.Configuration.CustomTypeElement), CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)>]
type SecurityTokenHandlerElementCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class SecurityTokenHandlerElementCollection
Inherits ConfigurationElementCollection
继承
SecurityTokenHandlerElementCollection
属性
<securityTokenHandlers>
元素包含向 终结点注册的安全令牌处理程序集 (SecurityTokenHandler ) 。 默认情况下,集合使用 SamlSecurityTokenHandler 、、、Saml2SecurityTokenHandler 、WindowsUserNameSecurityTokenHandler RsaSecurityTokenHandler KerberosSecurityTokenHandler 、X509SecurityTokenHandler 、 SessionSecurityTokenHandler 和 EncryptedSecurityTokenHandler 填充。
在配置文件中,每个令牌处理程序都可以将自定义配置作为其 <add>
元素的子元素。 SamlSecurityTokenHandler 、 Saml2SecurityTokenHandler X509SecurityTokenHandler 和 MembershipUserNameSecurityTokenHandler 具有预定义的自定义配置节。
也可以命名安全令牌处理程序集合;以在某些情况下使用。 框架处理的唯一名称是“ActAs”和“OnBehalfOf”。 如果这些集合中存在处理程序,则将使用它们而不是默认处理程序来处理 ActAs 和 OnBehalfOf 令牌;例如 <securityTokenHandlers name="ActAs">
。 属性 name
由 Name 属性表示。
子<securityTokenHandlerConfiguration>
元素为集合中的处理程序定义默认设置, (这些默认设置可由 add> 元素) 中的<单个处理程序定义的设置重写。 <securityTokenHandlerElement>
由 SecurityTokenHandlerConfigurationElement 类表示,并通过 SecurityTokenHandlerConfiguration 属性进行访问。
构造函数
属性
方法
BaseAdd(ConfigurationElement)
向 ConfigurationElementCollection 添加配置元素。
(继承自 ConfigurationElementCollection )
BaseAdd(ConfigurationElement, Boolean)
向配置元素集合添加配置元素。
(继承自 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 )
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 )
显式接口实现
扩展方法
适用于