Claim.Clone Method (ClaimsIdentity)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 Overridable Function Clone (
	identity As ClaimsIdentity
) As Claim


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