This documentation is archived and is not being maintained.
RoleProvider::RoleExists Method
Visual Studio 2010
Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.
Assembly: System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)
Parameters
- roleName
- Type: System::String
The name of the role to search for in the data source.
Return Value
Type: System::Booleantrue if the role name already exists in the data source for the configured applicationName; otherwise, false.
RoleExists is called by the RoleExists method of the Roles class to determine whether a role name exists in the data source for the configured ApplicationName.
If the specified role name is nullptr or is an empty string, we recommend that your provider throw an exception.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: