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


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

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, name claim type, and role claim type.

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

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

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

Dim instance As New ClaimsIdentity(claims, authenticationType, bootstrapToken)

Синтаксис

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

Параметры

  • claims
    The collection of Claim objects to populate ClaimsIdentity with.
  • authenticationType
    The type of authentication used.
  • bootstrapToken
    The token originally used to create this identity.

Исключения

Тип исключений Условие

Примечания

Платформы

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

Windows Server 2003, Windows Vista

Target Platforms

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

См. также

Справочник

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