Edit

Share via


Saml2NameIdentifier Constructors

Definition

Initializes a new instance of the Saml2NameIdentifier class.

Overloads

Saml2NameIdentifier(String)

Initializes a new instance of the Saml2NameIdentifier class with the specified name.

Saml2NameIdentifier(String, Uri)

Initializes a new instance of the Saml2NameIdentifier class with the specified name and format URI.

Saml2NameIdentifier(String)

Initializes a new instance of the Saml2NameIdentifier class with the specified name.

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

Parameters

name
String

The name identifier.

Exceptions

name is null.

Remarks

The Value property is initialized with the identifier specified by name. The Format property is initialized to null.

Applies to

Saml2NameIdentifier(String, Uri)

Initializes a new instance of the Saml2NameIdentifier class with the specified name and format URI.

public:
 Saml2NameIdentifier(System::String ^ name, Uri ^ format);
public Saml2NameIdentifier (string name, Uri format);
new System.IdentityModel.Tokens.Saml2NameIdentifier : string * Uri -> System.IdentityModel.Tokens.Saml2NameIdentifier
Public Sub New (name As String, format As Uri)

Parameters

name
String

The name identifier.

format
Uri

A Uri that specifies the identifier format.

Exceptions

name is null.

An attempt to set format to a value that is not null and is not an absolute URI occurs.

Remarks

The Value property is initialized with the identifier specified by name. The Format property is initialized to the URI specified by format.

Applies to