SessionSecurityTokenHandler.LoadCustomConfiguration Method (XmlNodeList)

.NET Framework (current version)
 
System_CAPS_noteNote

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

Loads custom configuration from XML.

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

Public Overrides Sub LoadCustomConfiguration (
	customConfigElements As XmlNodeList
)

Parameters

customConfigElements
Type: System.Xml.XmlNodeList

The custom configuration elements.

Exception Condition
ArgumentNullException

customConfigElements is null.

InvalidOperationException

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
Show: