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 、KerberosSecurityTokenHandler 、WindowsUserNameSecurityTokenHandler 、、RsaSecurityTokenHandler 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)
取得值,指出在還原序列化程序中是否遇到未知的屬性 (Attribute)。
(繼承來源 ConfigurationElement )
OnDeserializeUnrecognizedElement(String, XmlReader)
導致組態系統擲回例外狀況。
(繼承來源 ConfigurationElementCollection )
OnRequiredPropertyNotFound(String)
在找不到必要的屬性時擲回例外狀況 (Exception)。
(繼承來源 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 )
明確介面實作
擴充方法
適用於