ClaimsPrincipal.AddIdentities(IEnumerable<ClaimsIdentity>) 方法

定义

将指定的声明标识添加到此声明主体。Adds the specified claims identities to this claims principal.

public:
 virtual void AddIdentities(System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^ identities);
[System.Security.SecurityCritical]
public virtual void AddIdentities (System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> identities);
public virtual void AddIdentities (System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity> identities);
[<System.Security.SecurityCritical>]
abstract member AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
override this.AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
abstract member AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
override this.AddIdentities : seq<System.Security.Claims.ClaimsIdentity> -> unit
Public Overridable Sub AddIdentities (identities As IEnumerable(Of ClaimsIdentity))

参数

identities
IEnumerable<ClaimsIdentity>

要添加的声明标识。The claims identities to add.

属性

例外

identitiesnullidentities is null.

注解

标识将添加到 Identities 集合中。The identities are added to the Identities collection.

适用于