The Command interface supports the following properties.
| Property | Description |
|---|---|
| ClassType | Returns an enumeration constant that identifies the specific class type |
| CommandType | Returns an enumeration constant that identifies the command option |
| Description | Sets or returns the description of the command object |
| IsValid | Indicates whether the Name and Statement properties are empty and whether the command object belongs to a collection |
| Name | Sets or returns the name of the command object |
| OrdinalPosition | Returns the ordinal position of the command object in the Commands collection of the parent MDStore object |
| Parent | Returns a reference to the parent MDStore object |
| ParentObject | Returns a reference to the parent object of which this object is a child |
| Statement | Sets or returns the text of the command statement |
| SubClassType | Returns an enumeration constant that identifies the subclass type of the object |
The following table shows whether the property is read/write (R/W) or read-only (R) for different objects.
| Property | clsDatabaseCommand | clsCubeCommand | clsRoleCommand |
|---|---|---|---|
| ClassType | R | R | R |
| CommandType | R/W | R/W | R/W |
| Description | R/W | R/W | R/W |
| IsValid | R | R | R |
| Name | R/W (R after the object has been named) | R/W (R after the object has been named) | R/W (R after the object has been named) |
| OrdinalPosition | R | R | R |
| Parent | R | R | R |
| ParentObject | R | R | R |
| Statement | R/W | R/W | R/W |
| SubClassType | R | R | R |