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.5.94
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 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