Partager via


Constructeur WindowsClaimsPrincipal (WindowsIdentity, String)

Initializes an instance of T:Microsoft.IdentityModel.Claims.WindowsClaimsPrincipal.

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

Utilisation

    Dim identity As WindowsIdentity
Dim issuerName As String

Dim instance As New WindowsClaimsPrincipal(identity, issuerName)

Syntaxe

'Déclaration
Public Sub New ( _
    identity As WindowsIdentity, _
    issuerName As String _
)
public WindowsClaimsPrincipal (
    WindowsIdentity identity,
    string issuerName
)
public:
WindowsClaimsPrincipal (
    WindowsIdentity^ identity, 
    String^ issuerName
)
public WindowsClaimsPrincipal (
    WindowsIdentity identity, 
    String issuerName
)
public function WindowsClaimsPrincipal (
    identity : WindowsIdentity, 
    issuerName : String
)

Paramètres

  • identity
    WindowsIdentity to draw user token from.
  • issuerName
    The Windows issuer name to use.

Exceptions

Type d'exception Condition

Remarques

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 WindowsClaimsPrincipal
Membres WindowsClaimsPrincipal
Espace de noms Microsoft.IdentityModel.Claims