C# Class System.Security.Principal.GenericPrincipal

Inheritance: System.Security.Claims.ClaimsPrincipal
Mostra file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
GenericPrincipal ( System identity, string roles )
GenericPrincipal ( IIdentity identity, string roles ) : System
IsInRole ( string role ) : bool

Private Methods

Method Description
AddIdentityWithRoles ( IIdentity identity, string roles ) : void

helper method to add roles

Method Details

GenericPrincipal() public method

public GenericPrincipal ( System identity, string roles )
identity System
roles string

GenericPrincipal() public method

public GenericPrincipal ( IIdentity identity, string roles ) : System
identity IIdentity
roles string
return System

IsInRole() public method

public IsInRole ( string role ) : bool
role string
return bool