Editar

Partilhar via


Claim.Clone Method

Definition

Returns a new Claim object copied from this object.

Overloads

Clone(ClaimsIdentity)

Returns a new Claim object copied from this object. The subject of the new claim is set to the specified ClaimsIdentity.

Clone()

Returns a new Claim object copied from this object. The new claim does not have a subject.

Clone(ClaimsIdentity)

Source:
Claim.cs
Source:
Claim.cs
Source:
Claim.cs

Returns a new Claim object copied from this object. The subject of the new claim is set to the specified ClaimsIdentity.

public:
 virtual System::Security::Claims::Claim ^ Clone(System::Security::Claims::ClaimsIdentity ^ identity);
public virtual System.Security.Claims.Claim Clone (System.Security.Claims.ClaimsIdentity identity);
public virtual System.Security.Claims.Claim Clone (System.Security.Claims.ClaimsIdentity? identity);
abstract member Clone : System.Security.Claims.ClaimsIdentity -> System.Security.Claims.Claim
override this.Clone : System.Security.Claims.ClaimsIdentity -> System.Security.Claims.Claim
Public Overridable Function Clone (identity As ClaimsIdentity) As Claim

Parameters

identity
ClaimsIdentity

The intended subject of the new claim.

Returns

The new claim object.

Remarks

This is a shallow copy operation. The Subject property of the new Claim object is set to the value of the identity parameter.

Applies to

Clone()

Source:
Claim.cs
Source:
Claim.cs
Source:
Claim.cs

Returns a new Claim object copied from this object. The new claim does not have a subject.

public:
 virtual System::Security::Claims::Claim ^ Clone();
public virtual System.Security.Claims.Claim Clone ();
abstract member Clone : unit -> System.Security.Claims.Claim
override this.Clone : unit -> System.Security.Claims.Claim
Public Overridable Function Clone () As Claim

Returns

The new claim object.

Remarks

This is a shallow copy operation. The Subject property of the new Claim object is set to null.

Applies to