Click or drag to resize

VGRolesInstanceFindUsersInRoleById Method

Note: This API is now obsolete.

Gets a list of users in a specified role where the user name contains the specified user name to match.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
[ObsoleteAttribute("Use FindUsersInRole(VGRole role, string usernameToMatch) method")]
public VGMembershipUserCollection FindUsersInRoleById(
	Guid roleId,
	string usernameToMatch
)

Parameters

roleId
Type: SystemGuid
The repository of the role to search in.
usernameToMatch
Type: SystemString
The user name to search for.

Return Value

Type: VGMembershipUserCollection
A string array containing the names of all the users whose user name matches usernameToMatch and who are members of the specified role.
Exceptions
ExceptionCondition
ArgumentNullExceptionusernameToMatch is null.
ArgumentExceptionroleId was not found in the repository for belongs to another application.

-or-

usernameToMatch is an empty string.
Remarks
Wildcards such as asterisks and question marks can be used in the usernameToMatch parameter value.
See Also