# void Query::SetCommand(str, Obj)

[Family: Query](/imperivm/en/CKS/familias/query/)

## Exact signature

```text
void Query::SetCommand(str, Obj)
```

## Description

Constructs and installs an object-targeted command for each live member of a resolved Query.

## Parameters and return type

**Return type:** `void`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `str` |
| 2 | `Obj` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`void Query::SetCommand(str)`](/imperivm/en/CKS/reference/api-903577c31a77bd/)
- [`void Query::SetCommand(str, point)`](/imperivm/en/CKS/reference/api-2fffee1c4b3692/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-f97e52089e344a.md)
- [JSON](/imperivm/CKS/api/entries/api-f97e52089e344a?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
