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 集。 根據預設,集合會填入 、、、、、RsaSecurityTokenHandlerX509SecurityTokenHandler、 SessionSecurityTokenHandler和 。Saml2SecurityTokenHandlerSamlSecurityTokenHandlerWindowsUserNameSecurityTokenHandlerKerberosSecurityTokenHandlerEncryptedSecurityTokenHandler
在組態檔中,每個令牌處理程式都可以將自定義組態當做其 <add>
元素的子元素。
SamlSecurityTokenHandler、 Saml2SecurityTokenHandlerX509SecurityTokenHandler 和 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。 |