ISiteFreezeContent Method Ingeniux CMS Content Store API

Plans a Content Freeze on the Site Instance.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

void FreezeContent(
	DateTime startTime,
	Nullable<DateTime> endTime,
	IEnumerable<IUser> allowedUsers,
	IEnumerable<IUserGroup> allowedGroups,
	string message
)

Parameters

startTime
Type: SystemDateTime
Time to start the Content Freeze, this value can be before "Now" time, which means Content Freeze will start right away.
endTime
Type: SystemNullableDateTime
The ending time of the Content Freeze. If null value, Content Freeze state will have to be terminated by calling CancelContentFreeze method.
allowedUsers
Type: System.Collections.GenericIEnumerableIUser
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
Type: System.Collections.GenericIEnumerableIUserGroup

[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
Type: SystemString
The message to display to blocked Users during Content Freeze.
Exceptions

ExceptionCondition
[!:System.SecurityException]When 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

Reference