ICSEptContentTrySetValue Method Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Sets the value of the specified field.

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

bool TrySetValue(
	string name,
	string value
)

Parameters

name
Type: SystemString
The name of the field whose value to set.
value
Type: SystemString
The value to set. null is ignored.

Return Value

Type: Boolean
true if the field exists and the value was set; otherwise, false.
Exceptions

ExceptionCondition
ArgumentNullExceptionname is null
Remarks

Use this method when you like to set a value to a field if it exists without adding it if it does not exist.
See Also

Reference