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
		- 继承
 
- 属性
 
注解
元素 <securityTokenHandlers> 包含向终结点注册 (SecurityTokenHandler) 的安全令牌处理程序集。 默认情况下,集合填充SamlSecurityTokenHandler有 、、、Saml2SecurityTokenHandlerKerberosSecurityTokenHandler、RsaSecurityTokenHandlerWindowsUserNameSecurityTokenHandler、X509SecurityTokenHandler、 SessionSecurityTokenHandler和 EncryptedSecurityTokenHandler。
在配置文件中,每个令牌处理程序都可以将自定义配置作为其 <add> 元素的子元素。 
              SamlSecurityTokenHandler
              X509SecurityTokenHandler、 Saml2SecurityTokenHandler和 MembershipUserNameSecurityTokenHandler 具有预定义的自定义配置节。
也可以命名安全令牌处理程序集合;以在某些情况下使用。 框架处理的唯一名称是“ActAs”和“OnBehalfOf”。 如果这些集合中存在处理程序,则将使用它们来代替默认处理程序来处理 ActAs 和 OnBehalfOf 令牌;例如 <securityTokenHandlers name="ActAs">。 属性 name 由 Name 属性表示。
子<securityTokenHandlerConfiguration>元素定义集合中处理程序的默认设置 (可由 add> 元素) 中的<单个处理程序定义的设置重写。 
              <securityTokenHandlerElement>由 类表示,SecurityTokenHandlerConfigurationElement并通过 SecurityTokenHandlerConfiguration 属性进行访问。
构造函数
| SecurityTokenHandlerElementCollection() | 
		 初始化 SecurityTokenHandlerElementCollection 类的新实例。  | 
        	
属性
方法
显式接口实现
| ICollection.CopyTo(Array, Int32) | 
		 将 ConfigurationElementCollection 复制到数组。 (继承自 ConfigurationElementCollection) | 
        	
扩展方法
| Cast<TResult>(IEnumerable) | 
		 将 IEnumerable 的元素强制转换为指定的类型。  | 
        	
| OfType<TResult>(IEnumerable) | 
		 根据指定类型筛选 IEnumerable 的元素。  | 
        	
| AsParallel(IEnumerable) | 
		 启用查询的并行化。  | 
        	
| AsQueryable(IEnumerable) | 
		 将 IEnumerable 转换为 IQueryable。  |