DisplayClaim Constructor (String, String, String, String)

.NET Framework 4.5

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

Namespace:  System.IdentityModel.Metadata
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public DisplayClaim(
	string claimType,
	string displayTag,
	string description,
	string displayValue
)

Parameters

claimType
Type: System.String

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

displayTag
Type: System.String

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

description
Type: System.String

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

displayValue
Type: System.String

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

ExceptionCondition
ArgumentNullException

claimType is null or an empty string.

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

.NET Framework

Supported in: 4.6
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft