Mono Class Library: System.Security.Principal.GenericPrincipal Overview | Members

System.Security.Principal.GenericPrincipal.IsInRole Method

Return the membership of the current principal in the specified role. [Edit]

public virtual bool IsInRole (string role)

Parameters

role
A string representing the role name to check for membership. [Edit]

Returns

True if the identity is part of the specified role, false otherwise. [Edit]

Remarks

Roles are case sensitive. [Edit]

Requirements

Namespace: System.Security.Principal
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0