Partager via


Méthode Claim.SetSubject

Sets the new subject for the Claim.

Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim instance As Claim
Dim subject As IClaimsIdentity

instance.SetSubject(subject)

Syntaxe

'Déclaration
Public Overridable Sub SetSubject ( _
    subject As IClaimsIdentity _
)
public virtual void SetSubject (
    IClaimsIdentity subject
)
public:
virtual void SetSubject (
    IClaimsIdentity^ subject
)
public void SetSubject (
    IClaimsIdentity subject
)
public function SetSubject (
    subject : IClaimsIdentity
)

Paramètres

  • subject
    The ClaimCollection that represents the subject of the claim.

Remarques

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.

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

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

Voir aussi

Référence

Classe Claim
Membres Claim
Espace de noms Microsoft.IdentityModel.Claims