Saml2Id Constructors

Definition

Initializes a new instance of the Saml2Id class.

Overloads

Saml2Id()

Initializes a new instance of the Saml2Id class with a system-generated value.

Saml2Id(String)

Initializes a new instance of the Saml2Id class with the specified value.

Saml2Id()

Initializes a new instance of the Saml2Id class with a system-generated value.

C#
public Saml2Id();

Remarks

The ID is created based on a generated GUID and the Value property is set accordingly.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Saml2Id(String)

Initializes a new instance of the Saml2Id class with the specified value.

C#
public Saml2Id(string value);

Parameters

value
String

The ID value.

Exceptions

value is not a valid NCName.

value is null or an empty string.

Remarks

The identifier should be unique per [Saml2Core, 1.3.4] and must fit the NCName xml schema definition, that is, it must begin with a letter or underscore.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1