Properties, Command Interface

The Command interface supports the following properties.

Property Description
ClassType Returns an enumeration constant identifying the specific class type.
CommandType Returns an enumeration constant identifying the command option.
Description Sets or returns the description of the command object.
IsValid Indicates whether the Name and Statement properties are empty and that 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 parent MDStore object’s Commands collection.
Parent Returns a reference to the parent MDStore object.
Statement Sets or returns the text of the command statement.
SubClassType Returns an enumeration constant identifying the subclass type of the object.

Access Cross- Reference

The following table shows whether the property is read/write (R/W) or read-only (R) for different objects.

Property clsDatabaseCommand clsCubeCommand
ClassType R R
CommandType R/W R/W
Description R/W R/W
IsValid R R
Name R/W (R after the object has been named) R/W (R after the object has been named)
OrdinalPosition R R
Parent R R
Statement R/W R/W
SubClassType R R

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.