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: 2017.0.101.17 (2017.0.101.17)

Syntax

C#
public override bool RoleExists(
	string roleName
)
Visual Basic
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

Type: Boolean
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