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.

C#
public DisplayClaim(string claimType);

Parameters

claimType
String

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

Exceptions

claimType is null or an empty string.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DisplayClaim(String, String, String)

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

C#
public DisplayClaim(string claimType, string displayTag, string description);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public DisplayClaim(string claimType, string displayTag, string description, string displayValue);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public DisplayClaim(string claimType, string displayTag, string description, string displayValue, bool optional);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1