System.Security.Principal.IPrincipal.IsInRole Method

Determines whether the current principal belongs to the specified role.

Syntax

public bool IsInRole (string role)

Parameters

role
The name of the role for which to check membership.

Returns

true if the current principal is a member of the specified role; otherwise, false.

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, 4.0.0.0