Export (0) Print
Expand All

SessionSecurityTokenHandler.LoadCustomConfiguration Method

.NET Framework 4.6 and 4.5

Loads custom configuration from XML.

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

public override void LoadCustomConfiguration(
	XmlNodeList customConfigElements
)

Parameters

customConfigElements
Type: System.Xml.XmlNodeList

The custom configuration elements.

Implements

ICustomIdentityConfiguration.LoadCustomConfiguration(XmlNodeList)

ExceptionCondition
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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft