Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Claim.Type Property

Definition

Namespace:
System.Security.Claims
Assemblies:
mscorlib.dll, System.Security.Claims.dll
Assemblies:
netstandard.dll, System.Security.Claims.dll
Assembly:
System.Security.Claims.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
Claim.cs
Source:
Claim.cs
Source:
Claim.cs
Source:
Claim.cs
Source:
Claim.cs

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.

Gets the claim type of the claim.

public:
 property System::String ^ Type { System::String ^ get(); };
public string Type { get; }
member this.Type : string
Public ReadOnly Property Type As String

Property Value

The claim type.

Remarks

The Type property provides the semantic content of the claim, that is, it states what the claim is about. For example, a claim with a claim type of GivenName ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname") represents a user's first name. The claim type is typically a URI; however, you are not limited to any specific format other than that it must be representable as a string. The only general requirement is that the claim issuer and the claim consumer must agree about the meaning of the claim. Constants for the well-known claim types used by Windows Identity Foundation (WIF) are available through the ClaimTypes class. The claim value is provided by the Value property.

Applies to


Feedback

Was this page helpful?