Поделиться через


ClaimsIdentity Конструктор (Универсальный IEnumerable, String)

Initializes an instance of T:Microsoft.IdentityModel.Claims.ClaimsIdentity using an enumerated collection of T:Microsoft.IdentityModel.Claims.Claim objects and the specified authentication type.

Пространство имен: Microsoft.IdentityModel.Claims
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

    Dim claims As IEnumerable(Of Claim)
Dim authenticationType As String

Dim instance As New ClaimsIdentity(claims, authenticationType)

Синтаксис

'Декларация
Public Sub New ( _
    claims As IEnumerable(Of Claim), _
    authenticationType As String _
)
public ClaimsIdentity (
    IEnumerable<Claim> claims,
    string authenticationType
)
public:
ClaimsIdentity (
    IEnumerable<Claim^>^ claims, 
    String^ authenticationType
)
public ClaimsIdentity (
    IEnumerable<Claim> claims, 
    String authenticationType
)
public function ClaimsIdentity (
    claims : IEnumerable<Claim>, 
    authenticationType : String
)

Параметры

  • claims
    The collection of claims.
  • authenticationType
    The method used for authenticating the user.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также

Справочник

Класс ClaimsIdentity
ClaimsIdentity Члены
Пространство имен Microsoft.IdentityModel.Claims