VistaDB 6
VistaDB.Web Namespace / VistaDBRoleProvider Class / RoleExists Method
The name of the role to search for in the data source.Name of the role to search for in the database


In This Topic
    RoleExists Method
    In This Topic
    Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName. Does this role exist in teh current database?
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function RoleExists( _
       ByVal roleName As System.String _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As VistaDBRoleProvider
    Dim roleName As System.String
    Dim value As System.Boolean
     
    value = instance.RoleExists(roleName)
    public override System.bool RoleExists( 
       System.string roleName
    )

    Parameters

    roleName
    The name of the role to search for in the data source.Name of the role to search for in the database

    Return Value

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

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also