Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
WRITE permission on the event actions item is required to update an item.
[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)
Syntax
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 )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - eventActionId
- Type: SystemInt32
An identifier to the event to save. - csEvent
- Type: ContentStudio.EventActionsContentStudioEvents
One of the valid events defined in the ContentStudioEvents enumeration to save. Unspecified is not allowed.
Note
Not all events are implemented as synchronous events. See the ContentStudioEvents enumeration for more information. - actionName
- Type: SystemString
The display name of the event actions. This parameter cannot be null or empty or exceed MAX_NAME_SIZE characters in length. - actionType
- Type: ContentStudio.EventActionsActionTypes
The type of action, defined in the ActionTypes enumeration, to be performed by the Event Action subsystem. - command
- 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. - runOnce
- Type: SystemBoolean
Indicates that the event will be triggered once only. After that the event has been triggered it will be disabled. - timeOut
- Type: SystemInt32
The timeout in seconds - moniker
- 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" - unique
- 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.
Exceptions
Exception | Condition |
---|---|
NullReferenceException | A string parameter was null |
InvalidOperationException | Zero or negative values is not valid for EAID |
ArgumentOutOfRangeException | A string parameter was has too a long value or the name was empty |
InvalidEnumArgumentException | One of the enumeration arguments is invalid. |
CSException | A business rule was violated in the underlying Content Studio database |
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
See Also