New to Telerik UI for WinForms? Start a free 30-day trial

Stores the current user's identity fields used for permission checks and revision attribution.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class UserInfo

Inheritance: objectUserInfo

Constructors

Initializes the current user's group, display name, user name, and email address.

C#
public UserInfo(string group, string realName, string username, string email)
Parameters:groupstring

The user's group name.

realNamestring

The user's display name.

usernamestring

The user's login name.

emailstring

The user's email address.

Properties

Gets the email address used for case-insensitive individual-permission matching.

C#
public string Email { get; }

Gets the user's group name, matched case-insensitively against group-based permission entries.

C#
public string Group { get; }

Gets the display name used as the author name for recorded revisions.

C#
public string RealName { get; }

Gets the user name used for individual-permission matching (after removing a domain prefix) and track-changes author coloring.

C#
public string Username { get; }

Methods

Determines whether another user record has the same four identity values. String values are compared case-sensitively.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare.

Returns:

bool

true when obj is a UserInfo with matching values.

Overrides: object.Equals(object)

Returns a hash code derived from the group, display name, user name, and email address.

C#
public override int GetHashCode()
Returns:

int

A hash code consistent with the identity-value equality check.

Overrides: object.GetHashCode()