CreateX500DistinguishedNameClaim Method

Claim.CreateX500DistinguishedNameClaim Method

Creates a Claim object that represents the specified X.500 distinguished name.

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

public static Claim CreateX500DistinguishedNameClaim (
	X500DistinguishedName x500DistinguishedName
)
public static Claim CreateX500DistinguishedNameClaim (
	X500DistinguishedName x500DistinguishedName
)
public static function CreateX500DistinguishedNameClaim (
	x500DistinguishedName : X500DistinguishedName
) : Claim
Not applicable.

Parameters

x500DistinguishedName

A X500DistinguishedName that specifies the X.500 distinguished name of the entity associated with the claim. This parameter must not be a null reference (Nothing in Visual Basic). If this parameter is a null reference (Nothing in Visual Basic), this method throws an ArgumentNullException exception.

Return Value

The Claim object this method creates.

Exception typeCondition

ArgumentNullException

The x500DistinguishedName parameter is a null reference (Nothing in Visual Basic).

The Claim object this method creates has the following property values.

ClaimType

X500DistinguishedName

Resource

The value of the x500DistinguishedName parameter.

Right

PossessProperty.

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:
© 2016 Microsoft