編輯

共用方式為


DefaultClaimSet Constructors

Definition

Initializes a new instance of the DefaultClaimSet class.

Overloads

DefaultClaimSet(IList<Claim>)

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(Claim[])

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(ClaimSet, IList<Claim>)

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(ClaimSet, Claim[])

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(IList<Claim>)

Source:
DefaultClaimSet.cs
Source:
DefaultClaimSet.cs

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

public:
 DefaultClaimSet(System::Collections::Generic::IList<System::IdentityModel::Claims::Claim ^> ^ claims);
public DefaultClaimSet (System.Collections.Generic.IList<System.IdentityModel.Claims.Claim> claims);
new System.IdentityModel.Claims.DefaultClaimSet : System.Collections.Generic.IList<System.IdentityModel.Claims.Claim> -> System.IdentityModel.Claims.DefaultClaimSet
Public Sub New (claims As IList(Of Claim))

Parameters

claims
IList<Claim>

An IList<T> of type Claim that contains the claims to add to this claim set.

Exceptions

claims is null.

Remarks

Use this constructor when the ClaimSet is self-issued. For example, a claim set for an anonymous user is self-issued.

This constructor calls the Initialize method.

Applies to

DefaultClaimSet(Claim[])

Source:
DefaultClaimSet.cs
Source:
DefaultClaimSet.cs

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

public:
 DefaultClaimSet(... cli::array <System::IdentityModel::Claims::Claim ^> ^ claims);
public DefaultClaimSet (params System.IdentityModel.Claims.Claim[] claims);
new System.IdentityModel.Claims.DefaultClaimSet : System.IdentityModel.Claims.Claim[] -> System.IdentityModel.Claims.DefaultClaimSet
Public Sub New (ParamArray claims As Claim())

Parameters

claims
Claim[]

An array of Claim that represents the claims to be added to this claim set.

Exceptions

claims is null.

Remarks

Use this constructor when the ClaimSet is self-issued. For example, a claim set for an anonymous user is self-issued.

This constructor calls the Initialize method.

Applies to

DefaultClaimSet(ClaimSet, IList<Claim>)

Source:
DefaultClaimSet.cs
Source:
DefaultClaimSet.cs

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

public:
 DefaultClaimSet(System::IdentityModel::Claims::ClaimSet ^ issuer, System::Collections::Generic::IList<System::IdentityModel::Claims::Claim ^> ^ claims);
public DefaultClaimSet (System.IdentityModel.Claims.ClaimSet issuer, System.Collections.Generic.IList<System.IdentityModel.Claims.Claim> claims);
new System.IdentityModel.Claims.DefaultClaimSet : System.IdentityModel.Claims.ClaimSet * System.Collections.Generic.IList<System.IdentityModel.Claims.Claim> -> System.IdentityModel.Claims.DefaultClaimSet
Public Sub New (issuer As ClaimSet, claims As IList(Of Claim))

Parameters

issuer
ClaimSet

A ClaimSet object that specifies the issuer of the ClaimSet specified in the claims parameter.

claims
IList<Claim>

An IList<T> of type Claim that contains the claims to add to this claim set.

Exceptions

claims is null.

-or-

issuer is null.

Remarks

This constructor calls the Initialize method.

Applies to

DefaultClaimSet(ClaimSet, Claim[])

Source:
DefaultClaimSet.cs
Source:
DefaultClaimSet.cs

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

public:
 DefaultClaimSet(System::IdentityModel::Claims::ClaimSet ^ issuer, ... cli::array <System::IdentityModel::Claims::Claim ^> ^ claims);
public DefaultClaimSet (System.IdentityModel.Claims.ClaimSet issuer, params System.IdentityModel.Claims.Claim[] claims);
new System.IdentityModel.Claims.DefaultClaimSet : System.IdentityModel.Claims.ClaimSet * System.IdentityModel.Claims.Claim[] -> System.IdentityModel.Claims.DefaultClaimSet
Public Sub New (issuer As ClaimSet, ParamArray claims As Claim())

Parameters

issuer
ClaimSet

A ClaimSet object that specifies the issuer of the ClaimSet specified in the claims parameter.

claims
Claim[]

An array of Claim that represents the claims to be added to this claim set.

Exceptions

claims is null.

-or-

issuer is null.

Remarks

This constructor calls the Initialize method.

Applies to