SamlConditions Constructor (DateTime, DateTime, IEnumerable<SamlCondition>)

 
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.

Initializes a new instance of the SamlConditions class using the specified timeframe and conditions when the SAML assertion is valid.

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

public SamlConditions(
	DateTime notBefore,
	DateTime notOnOrAfter,
	IEnumerable<SamlCondition> conditions
)

Parameters

notBefore
Type: System.DateTime

A DateTime that specifies the earliest instant in time when the SAML assertion is valid. Sets the NotBefore property.

notOnOrAfter
Type: System.DateTime

A DateTime that specifies the instant in time when the SAML assertion expires. Sets the NotOnOrAfter property.

conditions
Type: System.Collections.Generic.IEnumerable<SamlCondition>

An IEnumerable<T> of type SamlCondition that specifies a set of conditions that a recipient of a SAML assertion must take into account in assessing the validity of the assertion. Sets the Conditions property.

Exception Condition
ArgumentException

conditions contains a member that is null.

The NotBefore and NotOnOrAfter properties are stored in Coordinated Universal Time (UTC).

.NET Framework
Available since 3.0
Return to top
Show: