Click or drag to resize

ISiteFreezeContent Method


Plans a Content Freeze on the Site Instance.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
void FreezeContent(
	DateTime startTime,
	DateTime? endTime,
	IEnumerable<IUser> allowedUsers,
	IEnumerable<IUserGroup> allowedGroups,
	string message
)

Parameters

startTime  DateTime
Time to start the Content Freeze, this value can be before "Now" time, which means Content Freeze will start right away.
endTime  NullableDateTime
The ending time of the Content Freeze. If null value, Content Freeze state will have to be terminated by calling CancelContentFreeze method.
allowedUsers  IEnumerableIUser
The list of Users that can still work with CMS during Content Freeze, besides the User that calls this method. If null or empty collection, only the calling User can work with CMS during Content Freeze.
allowedGroups  IEnumerableIUserGroup

[Missing <param name="allowedGroups"/> documentation for "M:Ingeniux.CMS.ISite.FreezeContent(System.DateTime,System.Nullable{System.DateTime},System.Collections.Generic.IEnumerable{Ingeniux.CMS.IUser},System.Collections.Generic.IEnumerable{Ingeniux.CMS.IUserGroup},System.String)"]

message  String
The message to display to blocked Users during Content Freeze.
Exceptions
ExceptionCondition
SecurityExceptionWhen a User without administrative permission trying to start a new Content Freeze, or when a User not in the allowed Users list, trying to change a pending or ongoing Content Freeze.
ArgumentExceptionWhen endTime is greater than startTime.
See Also