Skip to main content

ClientUserInfo

The ClientUserInfo class represents information about a client user, including their ID, name, username, and optionally a reference to another user they are acting on behalf of.

Properties

NameDescription
IdThe unique identifier for the user.
UserNameThe username of the user.
NameThe name of the user.
BehalfOfA reference to another ClientUserInfo object, representing the user on whose behalf this user is acting.

Constructors

NameDescription
ClientUserInfo(id, name, username, behalfOf)Initializes a new instance of the ClientUserInfo class with specified ID, name, username, and optional behalf-of user information.

Methods

NameDescription
ToString()Returns a string representation of the user’s name. If acting on behalf of another user, the string includes both the user’s name and the name of the user they are representing.
Clone()Creates a new ClientUserInfo instance with the same ID, name, and username, but without the BehalfOf reference.