SessionSecurityTokenHandler.LoadCustomConfiguration Method (XmlNodeList)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Loads custom configuration from XML.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override void LoadCustomConfiguration(
	XmlNodeList customConfigElements


Type: System.Xml.XmlNodeList

The custom configuration elements.

Exception Condition

customConfigElements is null.


The configuration specified by customConfigElements is not valid. For example, it does not contain a <sessionTokenRequirement> element, it contains more than one <sessionTokenRequirement> element, a valid TimeSpan value cannot be read from the lifetime attribute, or the lifetime attribute specifies a value that is less than TimeSpan.Zero.

Called by the configuration infrastructure to initialize the SessionSecurityTokenHandler instance. Initializes the TokenLifetime property from the lifetime attribute of the <sessionTokenRequirement> element in the configuration file.

.NET Framework
Available since 4.5
Return to top