Table of Contents

TUserClaims.AddOrSet Method

Overloads

TUserClaims.AddOrSet(TUserClaim)

Adds the given claim, replacing any existing claim with the same name. The collection takes ownership.

Remarks

Raises EEmptyClaimName if the claim's name is empty.

Syntax

Unit: Sparkle.Security

function TUserClaims.AddOrSet(Claim: TUserClaim): TUserClaim; overload;

Parameters

<-> Parameter Type Description
Claim TUserClaim The claim to add.

Returns

The same Claim that was added.

See also

TUserClaims.AddOrSet(string)

Creates and adds a claim with the given name and no value, replacing any existing claim of that name.

Syntax

Unit: Sparkle.Security

function TUserClaims.AddOrSet(const Name: string): TUserClaim; overload;

Parameters

<-> Parameter Type Description
const Name string The claim name.

Returns

The newly created claim.

See also

TUserClaims.AddOrSet(string, string)

Creates and adds a string claim with the given name and value, replacing any existing claim of that name.

Syntax

Unit: Sparkle.Security

function TUserClaims.AddOrSet(const Name: string; const Value: string): TUserClaim; overload;

Parameters

<-> Parameter Type Description
const Name string The claim name.
const Value string The string value to assign to the claim.

Returns

The newly created claim.

See also