Gets a value indicating whether the specified role name already exists in the authorization-manager policy store.

Namespace:  Novalys.VisualGuard.Security.WebForm
Assembly:  Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public override bool RoleExists(
	string roleName
)
Visual Basic (Declaration)
Public Overrides Function RoleExists ( _
	roleName As String _
) As Boolean

Parameters

roleName
Type: System..::.String
The name of the role to search for in the authorization-manager policy store.

Return Value

true if the role name already exists in the authorization-manager policy store; otherwise, false.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionroleName is null.
System..::.ArgumentExceptionroleName is an empty string.-or-roleName contains a comma.

See Also