C# Class ReviewR.Web.Models.ReviewRPrincipal

Inheritance: IPrincipal
Datei anzeigen Open project: anurse/ReviewR Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
FromUser ( User u ) : ReviewRPrincipal
IsInRole ( string role ) : bool
ReviewRPrincipal ( ReviewRIdentity id ) : System

Method Details

FromUser() public static method

public static FromUser ( User u ) : ReviewRPrincipal
u User
return ReviewRPrincipal

IsInRole() public method

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

ReviewRPrincipal() public method

public ReviewRPrincipal ( ReviewRIdentity id ) : System
id ReviewRIdentity
return System