Gets the information from the repository for the user identified by the specified Visual Guard repository id.

Namespace: Novalys.VisualGuard.Security.Membership
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
[ObsoleteAttribute("Use a Find or Get All ")]
public static VGMembershipUser GetUserById(
	string repositoryId
)
Visual Basic
<ObsoleteAttribute("Use a Find or Get All ")> 
Public Shared Function GetUserById ( 
	repositoryId As String
) As VGMembershipUser

Parameters

repositoryId
Type: System..::..String
The Visual Guard repository id identifying the user to retrieve.

Return Value

Type: VGMembershipUser
A VGMembershipUser object representing the specified user.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionrepositoryId is null.
System..::..ArgumentExceptionrepositoryId is empty or is longer than 256 characters.
System.Security..::..SecurityExceptionThe current user has not enough privileges to use Membership API. The Membership access level of the application must be sufficient to allows this action or the 'Membership Manager' role must be granted to the user by using the Visual Guard console.

See Also