VistaDB 5






IsUserInRole Method
Syntax
'Declaration
 
Public Overrides NotOverridable Function IsUserInRole( _
   ByVal username As System.String, _
   ByVal roleName As System.String _
) As System.Boolean
'Usage
 
Dim instance As VistaDBRoleProvider
Dim username As System.String
Dim roleName As System.String
Dim value As System.Boolean
 
value = instance.IsUserInRole(username, roleName)
public override System.bool IsUserInRole( 
   System.string username,
   System.string roleName
)
public function IsUserInRole( 
    username: System.String;
    roleName: System.String
): System.Boolean; override; 
public override function IsUserInRole( 
   username : System.String,
   roleName : System.String
) : System.boolean;
public: System.bool IsUserInRole( 
   System.string* username,
   System.string* roleName
) override 
public:
System.bool IsUserInRole( 
   System.String^ username,
   System.String^ roleName
) override 

Parameters

username
roleName
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