IReadonlyUser Interface Ingeniux CMS Content Store API

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: 9.0.565.0 (9.0.565)
Syntax

public interface IReadonlyUser

The IReadonlyUser type exposes the following members.

Properties

  NameDescription
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

Reference