C# 클래스 GSF.Security.SecurityPrincipal

A class that implements IPrincipal interface to facilitate custom role-based security.
상속: IPrincipal
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
IsInRole ( string roles ) : bool

Determines whether the user is a member of either of the specified roles.

SecurityPrincipal ( SecurityIdentity identity ) : System

Initializes a new instance of the SecurityPrincipal class.

메소드 상세

IsInRole() 공개 메소드

Determines whether the user is a member of either of the specified roles.
public IsInRole ( string roles ) : bool
roles string Comma separated list of roles to check.
리턴 bool

SecurityPrincipal() 공개 메소드

Initializes a new instance of the SecurityPrincipal class.
Value specified for is null.
public SecurityPrincipal ( SecurityIdentity identity ) : System
identity SecurityIdentity An object.
리턴 System