Edit

Share via


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.

public:
 Saml2Id();
public Saml2Id ();
Public Sub New ()

Remarks

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

Applies to

Saml2Id(String)

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

public:
 Saml2Id(System::String ^ value);
public Saml2Id (string value);
new System.IdentityModel.Tokens.Saml2Id : string -> System.IdentityModel.Tokens.Saml2Id
Public Sub New (value As String)

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