SynchronousEventHandlerBaseSaveOperationArguments Property Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Gets an object that contains the argument that was passed in to the save operation operation that triggered the event. This property has a value only for the OnBeforeDocumentSave and the OnDocumentPreview events, otherwise the value is null

Namespace: ContentStudio.EventActions.SynchronousEventHandlers
Assembly: SyncEvtHand (in SyncEvtHand.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public ISaveOperationArguments SaveOperationArguments { get; }

Property Value

Type: ISaveOperationArguments
The save operation arguments or null.
Remarks

Note Note
This property is new in Content Studio version 5.3

This property can be used to change a value that is about to be saved.

Examples

The following code fragment shows how to change the PublishDate and the Keywords of a document that is about to be saved.
This code only works in the OnBeforeDocumentSave synchronous event.

//Do not forget to check for null!
if (SaveOperationArguments != null)
{
   SaveOperationArguments.PublishDate = DateTime.Today.AddDays(1);
   SaveOperationArguments.Keywords = "Content Studio CMS";
}
See Also

Reference