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
)
<ObsoleteAttribute("Use FindUsersInRole(VGRole role, string usernameToMatch) method")>
Public Function FindUsersInRoleById (
roleId As Guid,
usernameToMatch As String
) As VGMembershipUserCollection
Parameters
- roleId
- Type: SystemGuid
The repository of the role to search in. - usernameToMatch
- Type: SystemString
The user name to search for.
Return Value
Type:
VGMembershipUserCollectionA string array containing the names of all the users whose user name matches usernameToMatch and who are members of the specified role.
Exceptions Exception | Condition |
---|
ArgumentNullException | usernameToMatch is null. |
ArgumentException | roleId 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