Export (0) Print
Expand All

SimpleRoleProvider.RoleExists Method

Returns a value that indicates whether a specified role exists.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

'Declaration
Public Overrides Function RoleExists ( _
	roleName As String _
) As Boolean
'Usage
Dim instance As SimpleRoleProvider
Dim roleName As String
Dim returnValue As Boolean

returnValue = instance.RoleExists(roleName)

Parameters

roleName
Type: System.String
The name of the role.

Return Value

Type: System.Boolean
true if the role exists; otherwise, false.

NoteNote:

If the WebSecurity.InitializeDatabaseConnection method has not been called, and if you have configured your site to use the standard ASP.NET role provider, this method is passed through to the standard role provider. For more information, see the SimpleRoleProvider class overview.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2015 Microsoft