Click or drag to resize

IReadonlyUser Interface


Represents the basic collection of information to be used to create a Session.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
public interface IReadonlyUser

The IReadonlyUser type exposes the following members.

Properties
  NameDescription
Public propertyDisabled
Gets whether the user is disabled
Public propertyIP
Gets the IP Address of the browser's computer.
Public propertyIsAdministrator
Gets whether the user is an administrator. Administrators have the privilege of working with any object in the CSAPI.
Public propertyLastLogin
Gets the time when this user last logged in.
Public propertyUserId
Gets the UserId of the user.
Top
Remarks

The ReadOnlyUser object is retrieved from the Content Store object via the method GetStartingUser.

C#
IReadonlyUser currentUser = contentStore.GetStartingUser(@"ingeniux\someuserid", visitorIp);

using (IUserSession session = store.OpenReadSession(currentUser))
{
    ...
}
See Also