Share via


SessionSecurityTokenHandler.LoadCustomConfiguration(XmlNodeList) 方法

定义

从 XML 加载自定义的配置。

public:
 override void LoadCustomConfiguration(System::Xml::XmlNodeList ^ customConfigElements);
public override void LoadCustomConfiguration (System.Xml.XmlNodeList customConfigElements);
override this.LoadCustomConfiguration : System.Xml.XmlNodeList -> unit
Public Overrides Sub LoadCustomConfiguration (customConfigElements As XmlNodeList)

参数

customConfigElements
XmlNodeList

自定义配置元素。

例外

customConfigElementsnull

customConfigElements 指定的配置无效。 例如,它不包含 <sessionTokenRequirement> 元素,而包含多个 <sessionTokenRequirement> 元素,不能从 lifetime 特性中读取有效 TimeSpan 值,否则 lifetime 特性将指定小于 Zero 的值。

注解

由配置基础结构调用以初始化 SessionSecurityTokenHandler 实例。 TokenLifetimelifetime配置文件中 sessionTokenRequirement> 元素的< 属性初始化 属性。

适用于

另请参阅