Gets a value indicating whether the specified role name already exists in the authorization-manager policy store.
Namespace: Novalys.VisualGuard.Security.WebFormAssembly: 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: Booleantrue if the role name already exists in the authorization-manager policy store; otherwise, false.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | roleName is null. |
System..::..ArgumentException | roleName is an empty string.-or-roleName contains a comma. |