ApiMem().GroupEnable

Enables one or more Groups in memory.

Description

SILVIA is able to dynamically enable and disable Groups of Behaviors. This function additively enables one or more named Groups in memory. If passing in more than one Group via the “groups” parameter, the names must be separated by the “|” character. Once enabled, these Groups can then be used (invoked) by the SILVIA runtime engine. Groups to be enabled can be specified using using wildcards. For instance, by passing “movies” to the function, all Groups containing the substring “movies” will be enabled. This would include “movies”, “movies_scifi”, or “old_movies”.

Example Usage (C#)


//Non-exclusively enabling “browsing” and “files”
bool success = _core.ApiMem().GroupEnable(“browsing|files”);

Parameters

string group The string containing the “|” separated (Pipe-separated) list of all Behavior Groups to be enabled.

Returns

The boolean success or failure of the operation.

See Also

  • ApiMem().GroupEnableOnly
  • ApiMem().GroupDisable
  • ApiMem().GroupIsEnabled