ISysInfo.SetInfo()

Description:

The SetInfo method modifies the value of a system attribute.

This is a synchronous method.

Syntax:

result = so.ISysInfo.SetInfo(criteria);

Arguments:

Return value:

The SetInfo method returns an error code and an error message.

Table: Return value properties for SetInfo

Property

Description

Value

result.ErrorCode

This is a number that specifies a predefined error code.

See Service API error codes.

result.ErrorMessage

This is a text string that describes the error.

See SystemInfo Service API error messages.

Remarks:

Only some system attributes can be modified. To find out which system attributes support SetInfo, see section Supported system attributes (entities and keys).

Example code:

For the complete source of a sample widget that demonstrates how to use this Service API, see the full example.