ClaimTypeRequirement.ClaimType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the claim type that was specified in the constructor.

Namespace:   System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public string ClaimType { get; }

Property Value

Type: System.String

The claim type.

This property is a URI that defines the type of a claim.  For example, to purchase a product from a Web site, the user must present a valid credit card with a sufficient credit limit. The claim type would be the credit card URI.

The following code shows how to get this property.

WSFederationHttpBinding binding = new WSFederationHttpBinding();
   (new ClaimTypeRequirement
   (new ClaimTypeRequirement
   ("", true));
ClaimTypeRequirement cr = new ClaimTypeRequirement
   ("", true);

.NET Framework
Available since 3.0
Return to top