Determines whether the user has a role with the specified name.
Namespace: BlueCieloECM.InnoCielo.Meridian.ServerAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)
Syntax
C# |
---|
public bool UserHasRole( string userName, string roleName ) |
Visual Basic |
---|
Public Function UserHasRole ( _ userName As String, _ roleName As String _ ) As Boolean |
Visual C++ |
---|
public: bool UserHasRole( String^ userName, String^ roleName ) |
Parameters
- userName
- Type: System..::..String
The name of the user.
- roleName
- Type: System..::..String
The name of the role to check.