SessionSecurityTokenHandler::LoadCustomConfiguration Method (XmlNodeList^)

.NET Framework (current version)
 

Loads custom configuration from XML.

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

public:
virtual void LoadCustomConfiguration(
	XmlNodeList^ customConfigElements
) override

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: