Click or drag to resize

VGRolesIsUserInRole Method (String)

Note: This API is now obsolete.

Gets a value indicating whether the currently logged-on user is in the specified role.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.0.101.19 (2019.0.0101.19)
Syntax
[ObsoleteAttribute("This class is obsolete now, plz use VGSecurityManager.Runtime.Roles", 
	true)]
public static bool IsUserInRole(
	string roleName
)

Parameters

roleName
Type: SystemString
The name of the role to search in.

Return Value

Type: Boolean
true if the currently logged-on user is in the specified role; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionroleName is null.

-or-

There is no current logged-on user.
ArgumentExceptionroleName is an empty string or is longer than 64 characters.
Remarks
this method is equivalent to IsInRole(String)
See Also