Export (0) Print
Expand All

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)

'Declaration
Public Sub New ( _
	claimType As String, _
	resource As Object, _
	right As String _
)
'Usage
Dim claimType As String
Dim resource As Object
Dim right As String

Dim instance As New Claim(claimType, resource, right)
public Claim (
	String claimType, 
	Object resource, 
	String right
)
public function Claim (
	claimType : String, 
	resource : Object, 
	right : String
)
Not applicable.

Parameters

claimType

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

resource

The object with which the new claim is associated.

right

The URI of the right associated with the claim.

Exception typeCondition

ArgumentNullException

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

-or-

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

ArgumentException

claimType is zero length.

-or-

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

Community Additions

ADD
Show:
© 2014 Microsoft