共用方式為


DynamicRoleClaimProvider.AddDynamicRoleClaims 方法

定義

警告

Use ClaimsAuthenticationManager to add claims to a ClaimsIdentity

您可以使用 ClaimsAuthenticationManager 物件將宣告加入至 ClaimsIdentity 物件。

public:
 static void AddDynamicRoleClaims(System::Security::Claims::ClaimsIdentity ^ claimsIdentity, System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ claims);
[System.Obsolete("Use ClaimsAuthenticationManager to add claims to a ClaimsIdentity", true)]
public static void AddDynamicRoleClaims (System.Security.Claims.ClaimsIdentity claimsIdentity, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims);
[<System.Obsolete("Use ClaimsAuthenticationManager to add claims to a ClaimsIdentity", true)>]
static member AddDynamicRoleClaims : System.Security.Claims.ClaimsIdentity * seq<System.Security.Claims.Claim> -> unit
Public Shared Sub AddDynamicRoleClaims (claimsIdentity As ClaimsIdentity, claims As IEnumerable(Of Claim))

參數

claimsIdentity
ClaimsIdentity

要在其中加入宣告的宣告識別。

claims
IEnumerable<Claim>

要加入的宣告。

屬性

適用於

另請參閱