Returns a new ClaimCollection object copied from this object.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As ClaimCollection
Dim subject As IClaimsIdentity
Dim returnValue As ClaimCollection

returnValue = instance.CopyWithSubject(subject)

Syntax

Visual Basic
Public Function CopyWithSubject ( _
		subject As IClaimsIdentity _
) As ClaimCollection
C#
public ClaimCollection CopyWithSubject (
		IClaimsIdentity subject
)
C++
public:
ClaimCollection^ CopyWithSubject (
		IClaimsIdentity^ subject
)
J#
public ClaimCollection CopyWithSubject (
		IClaimsIdentity subject
)
JScript
public function CopyWithSubject (
		subject : IClaimsIdentity
) : ClaimCollection

Parameters

subject

The ClaimsIdentity object that is the subject of the new ClaimCollection object.

Return Value

A new ClaimCollection object copied from this object.

Exceptions

Exception type Condition

Remarks

The Subject property of the copy is set to subject.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also