DynamicRoleClaimProvider.AddDynamicRoleClaims Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use ClaimsAuthenticationManager to add claims to a ClaimsIdentity
You can use a ClaimsAuthenticationManager object to add claims to a ClaimsIdentity object.
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))
Parameters
- claimsIdentity
- ClaimsIdentity
The claims identity to which to add the claims.
- claims
- IEnumerable<Claim>
The claims to add.
- Attributes
Applies to
See also
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.