語言

ClaimsAuthenticationManager.LoadCustomConfiguration(XmlNodeList) 方法

定義

在衍生類別中覆寫時,從 XML 載入自定義組態。

public:
 virtual void LoadCustomConfiguration(System::Xml::XmlNodeList ^ nodelist);
public virtual void LoadCustomConfiguration(System.Xml.XmlNodeList nodelist);
abstract member LoadCustomConfiguration : System.Xml.XmlNodeList -> unit
override this.LoadCustomConfiguration : System.Xml.XmlNodeList -> unit
Public Overridable Sub LoadCustomConfiguration (nodelist As XmlNodeList)

參數

nodelist
XmlNodeList

自訂設定元素。 列表中的每個節點類型為 XmlElement。

實作

備註

LoadCustomConfiguration此方法由配置基礎設施呼叫。 當呼叫此方法時,會nodelist包含設定檔中claimsAuthenticationManager<元素的頂層子元素>。 這些元素中,依你為衍生類別定義的配置架構,可能包含屬性或子元素。 如果設定檔中元素下方 <claimsAuthenticationManager> 沒有子元素,則不會呼叫此方法。

預設實作會拋出一個 NotImplementedException。 在你的衍生類別中覆蓋此方法,以啟用從設定檔初始化你的權利認證管理器。 例如,配置元素可能描述驗證理賠主體時應遵循的政策;或者它們可能用來指向屬性庫,從中加入額外的主張到主體中。

適用於