This documentation is archived and is not being maintained.

Claim.Claim Constructor

Initializes a new instance of the Claim class with the specified type, resource, and right.

Namespace: System.IdentityModel.Claims
Assembly: System.IdentityModel (in system.identitymodel.dll)

Claim (
	String^ claimType, 
	Object^ resource, 
	String^ right
public Claim (
	String claimType, 
	Object resource, 
	String right
public function Claim (
	claimType : String, 
	resource : Object, 
	right : String
Not applicable.



A uniform resource identifier (URI) that represents a claim type.


The object with which the new claim is associated.


The URI of the right associated with the claim.

Exception typeCondition


claimType is a null reference (Nothing in Visual Basic).


right is a null reference (Nothing in Visual Basic).


claimType is zero length.


right is zero length.

Windows Communication Foundation (WCF) ships a set of pre-defined claim types and rights that are represented as members of the ClaimTypes and Rights classes.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0