Editare

Partajați prin


Saml2Attribute Constructors

Definition

Initializes a new instance of the Saml2Attribute class.

Overloads

Saml2Attribute(String)

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

Saml2Attribute(String, IEnumerable<String>)

Initializes a new instance of the Saml2Attribute class with the specified name and values.

Saml2Attribute(String, String)

Initializes a new instance of the Saml2Attribute class with the specified name and value.

Saml2Attribute(String)

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

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

Parameters

name
String

The name of the attribute.

Exceptions

name is null.

Applies to

Saml2Attribute(String, IEnumerable<String>)

Initializes a new instance of the Saml2Attribute class with the specified name and values.

public:
 Saml2Attribute(System::String ^ name, System::Collections::Generic::IEnumerable<System::String ^> ^ values);
public Saml2Attribute (string name, System.Collections.Generic.IEnumerable<string> values);
new System.IdentityModel.Tokens.Saml2Attribute : string * seq<string> -> System.IdentityModel.Tokens.Saml2Attribute
Public Sub New (name As String, values As IEnumerable(Of String))

Parameters

name
String

The name of the attribute.

values
IEnumerable<String>

A collection of strings that contains the attribute values.

Exceptions

name is null.

-or-

values is null.

Applies to

Saml2Attribute(String, String)

Initializes a new instance of the Saml2Attribute class with the specified name and value.

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

Parameters

name
String

The name of the attribute.

value
String

The value of the attribute.

Exceptions

name is null.

-or-

value is null.

Applies to