Sets the new subject for the Claim.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As Claim
Dim subject As IClaimsIdentity

instance.SetSubject(subject)

Syntax

Visual Basic
Public Overridable Sub SetSubject ( _
		subject As IClaimsIdentity _
)
C#
public virtual void SetSubject (
		IClaimsIdentity subject
)
C++
public:
virtual void SetSubject (
		IClaimsIdentity^ subject
)
J#
public void SetSubject (
		IClaimsIdentity subject
)
JScript
public function SetSubject (
		subject : IClaimsIdentity
)

Parameters

subject

The ClaimCollection that represents the subject of the claim.

Remarks

This method must not add the Claim to the new subject or remove it from the old subject. This method should only be called by ClaimCollection implementations - these are responsible for maintaining the referential integrity of the Subject property.


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