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

System.Security.Principal.IPrincipal.IsInRole Method

Return the membership of the current principal in the specified role.

public bool IsInRole (string role)

Parameters

role
A textual representation of the role.

Returns

True if the current identity is a member of the specified role, false otherwise.

Remarks

Documentation for this section has not yet been entered.

Requirements

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