C# Class System.Web.Security.ComBoostPrincipal

ComBoost principal wrapper.
Inheritance: IPrincipal
Show file Open project: Kation/ComBoost Class Usage Examples

Public Methods

Method Description
ComBoostPrincipal ( IPrincipal user ) : System

Initialize comboost principal.

IsInRole ( object role ) : bool

Determines whether the current principal belongs to the specified role.

IsInRole ( string role ) : bool

Determines whether the current principal belongs to the specified role.

Method Details

ComBoostPrincipal() public method

Initialize comboost principal.
public ComBoostPrincipal ( IPrincipal user ) : System
user IPrincipal Principal to wrapper.
return System

IsInRole() public method

Determines whether the current principal belongs to the specified role.
public IsInRole ( object role ) : bool
role object Role.
return bool

IsInRole() public method

Determines whether the current principal belongs to the specified role.
public IsInRole ( string role ) : bool
role string Role.
return bool