DisplayClaim Constructors

Definition

Initializes a new instance of the DisplayClaim class.

Overloads

DisplayClaim(String)

Initializes a new instance of the DisplayClaim class that has the specified claim type.

DisplayClaim(String, String, String)

Initializes a new instance of the DisplayClaim class that has the specified claim type, display name, and description.

DisplayClaim(String, String, String, String)

Initializes a new instance of the DisplayClaim class that has the specified claim type, display name, display value, and description. The claim is required.

DisplayClaim(String, String, String, String, Boolean)

Initializes a new instance of the DisplayClaim class that has the specified claim type, display name, display value, description, and optional attribute.

DisplayClaim(String)

Initializes a new instance of the DisplayClaim class that has the specified claim type.

public:
 DisplayClaim(System::String ^ claimType);
public DisplayClaim (string claimType);
new System.IdentityModel.Metadata.DisplayClaim : string -> System.IdentityModel.Metadata.DisplayClaim
Public Sub New (claimType As String)

Parameters

claimType
String

The claim type for the display claim. Initializes the ClaimType property.

Exceptions

claimType is null or an empty string.

Applies to

DisplayClaim(String, String, String)

Initializes a new instance of the DisplayClaim class that has the specified claim type, display name, and description.

public:
 DisplayClaim(System::String ^ claimType, System::String ^ displayTag, System::String ^ description);
public DisplayClaim (string claimType, string displayTag, string description);
new System.IdentityModel.Metadata.DisplayClaim : string * string * string -> System.IdentityModel.Metadata.DisplayClaim
Public Sub New (claimType As String, displayTag As String, description As String)

Parameters

claimType
String

The claim type for the display claim. Initializes the ClaimType property.

displayTag
String

The display name (or friendly name) for the display claim. Initializes the DisplayTag property.

description
String

The description for the display claim. Initializes the Description property.

Exceptions

claimType is null or an empty string.

Applies to

DisplayClaim(String, String, String, String)

Initializes a new instance of the DisplayClaim class that has the specified claim type, display name, display value, and description. The claim is required.

public:
 DisplayClaim(System::String ^ claimType, System::String ^ displayTag, System::String ^ description, System::String ^ displayValue);
public DisplayClaim (string claimType, string displayTag, string description, string displayValue);
new System.IdentityModel.Metadata.DisplayClaim : string * string * string * string -> System.IdentityModel.Metadata.DisplayClaim
Public Sub New (claimType As String, displayTag As String, description As String, displayValue As String)

Parameters

claimType
String

The claim type for the display claim. Initializes the ClaimType property.

displayTag
String

The display name (or friendly name) for the display claim. Initializes the DisplayTag property.

description
String

The description for the display claim. Initializes the Description property.

displayValue
String

The display value for the display claim. Initializes the DisplayValue property.

Exceptions

claimType is null or an empty string.

Remarks

The Optional property is initialized to true in the new instance.

Applies to

DisplayClaim(String, String, String, String, Boolean)

Initializes a new instance of the DisplayClaim class that has the specified claim type, display name, display value, description, and optional attribute.

public:
 DisplayClaim(System::String ^ claimType, System::String ^ displayTag, System::String ^ description, System::String ^ displayValue, bool optional);
public DisplayClaim (string claimType, string displayTag, string description, string displayValue, bool optional);
new System.IdentityModel.Metadata.DisplayClaim : string * string * string * string * bool -> System.IdentityModel.Metadata.DisplayClaim
Public Sub New (claimType As String, displayTag As String, description As String, displayValue As String, optional As Boolean)

Parameters

claimType
String

The claim type for the display claim. Initializes the ClaimType property.

displayTag
String

The display name (or friendly name) for the display claim. Initializes the DisplayTag property.

description
String

The description for the display claim. Initializes the Description property.

displayValue
String

The display value for the display claim. Initializes the DisplayValue property.

optional
Boolean

true if the claim is optional; otherwise, false. Initializes the Optional property.

Exceptions

claimType is null or an empty string.

Applies to