Claim.Clone Method (ClaimsIdentity)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

public virtual Claim Clone(
	ClaimsIdentity identity
)

Parameters

identity
Type: System.Security.Claims.ClaimsIdentity

The intended subject of the new claim.

Return Value

Type: System.Security.Claims.Claim

The new claim object.

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show: