共用方式為


ClaimsPrincipal.AddIdentities(IEnumerable<ClaimsIdentity>) 方法

定義

將指定的宣告識別加入這個宣告主體。

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>

要加入的宣告識別。

屬性

例外狀況

identitiesnull

備註

身分識別會新增至 Identities 集合。

適用於