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>

要添加的声明。

属性

适用于

另请参阅