EventActionsSave Method (ConnectionId, SessionId, Int32, ContentStudioEvents, String, ActionTypes, String, Boolean, Int32, String, Boolean) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Saves an Event Actions item.

Namespace: ContentStudio.EventActions
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public void Save(
	ConnectionId connectionId,
	SessionId sessionId,
	int eventActionId,
	ContentStudioEvents csEvent,
	string actionName,
	ActionTypes actionType,
	string command,
	bool runOnce,
	int timeOut,
	string moniker,
	bool unique


Type: ContentStudioConnectionId
A value that identifies the web site
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
Type: SystemInt32
An identifier to the event to save.
Type: ContentStudio.EventActionsContentStudioEvents
One of the valid events defined in the ContentStudioEvents enumeration to save. Unspecified is not allowed.
Not all events are implemented as synchronous events. See the ContentStudioEvents enumeration for more information.
Type: SystemString
The display name of the event actions. This parameter cannot be null or empty or exceed MAX_NAME_SIZE characters in length.
Type: ContentStudio.EventActionsActionTypes
The type of action, defined in the ActionTypes enumeration, to be performed by the Event Action subsystem.
Type: SystemString
The command to execute. The syntax for the command is depending on the ActionType. This parameter cannot be null or exceed MAX_COMMAND_SIZE characters in length.
Type: SystemBoolean
Indicates that the event will be triggered once only. After that the event has been triggered it will be disabled.
Type: SystemInt32
The timeout in seconds
Type: SystemString
The moniker to use. The moniker is used to indicate to the Service Manager how or where the event should be directed. Depending on the action this can be a URL or a moniker used to create an external object. To create a .NET object you can use its fully qualified name e.g. "SyncEventHandler.OnDocumentDeleteHandler, SyncEventHandler"
Type: SystemBoolean
Determines whether an entry must be unique withing the category and event or not Depending on the action this can be a URL or a moniker used to create an external object.

NullReferenceExceptionA string parameter was null
InvalidOperationExceptionZero or negative values is not valid for EAID
ArgumentOutOfRangeExceptionA string parameter was has too a long value or the name was empty
InvalidEnumArgumentExceptionOne of the enumeration arguments is invalid.
CSExceptionA business rule was violated in the underlying Content Studio database
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

WRITE permission on the event actions item is required to update an item.
See Also