ApiData().SetBehaviorData

Sets the arbitrary, application specific string data content for the Behavior.

Description

This function sets the data content for a particular identified Behavior, modifying the current SILVIA Brain to do so. This arbitrary string data can be fetched programmatically, or can also be served up automatically by the SILVIA Server when a particular Behavior is invoked.

Example Usage (C#)


bool success = _core.ApiData().SetBehaviorData(147, “images/73/54/userImage_423.jpg”);

Parameters

int

id

The numeric integer id of the Behavior to modify by setting the arbitrary data.

string

data

The string value representing the new data to apply to the given Behavior.

Returns

The boolean success or failure of the operation.

ApiData()