# 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:

- `criteria`:

  This is an object that specifies the new value for the system attribute. For more information about the object properties and how to define them, see section Criteria for modifying a system attribute value.

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.