Opens a read-only session. This session doesn't track changes to objects that were retrieved within this session, nor does it track created or deleted objects.
It is not in charge of saving changes, only for reading.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
Parameters
- user (Optional)
- Type: Ingeniux.CMSIReadonlyUser
The user to open the session.
Return Value
Type: IUserSessionThe read-only session.
Remarks
Examples
C#
IReadonlyUser currentUser = store.GetStartingUser(@"yourfirm\youruserid"); using (IUserSession session = store.OpenReadSession(currentUser)) { ...... }
See Also