Saml2Attribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.