ClaimsAuthenticationManager.LoadCustomConfiguration(XmlNodeList) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,从 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。 重写派生类中的此方法,以便从配置文件中初始化声明身份验证管理器。 例如,配置元素可能会描述在对声明主体进行身份验证时要遵循的策略;或它们可能用于指向要从中将其他声明添加到主体的属性存储。