Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.

Namespace:  EPiServer.Security
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public override bool RoleExists(
	string roleName
)

Parameters

roleName
Type: System..::.String
The name of the role to search for in the data source.

Return Value

true if the role name already exists in the data source for the configured applicationName; otherwise, false.

Remarks

Note that this method only checks if the given roleName is present in the database. The Windows group may exist, but if no user belonging to that group has logged on, this method will return false.

See Also