Class PropCommand
Command properties represent an action that can be performed by the device.
Implements
Inherited Members
Namespace: ic4
Assembly: ic4dotnet.dll
Syntax
public class PropCommand : Property, IDisposable
Remarks
A common example for a command property is TriggerSoftware
.
PropCommand instances are created in multiple ways:
- By directly querying a PropertyMap for a category property:
- By casting a Property object obtained from one of the functions returning generic property objects:
Properties
IsDone
Checks whether a command has finished executing.
Declaration
public bool IsDone { get; }
Property Value
Type | Description |
---|---|
bool |
|
Remarks
If the command was never executed before, the value is true
.
Exceptions
Type | Condition |
---|---|
IC4Exception | Check ErrorCode and ToString() for details. |
Methods
Execute()
Executes the command.
Declaration
public void Execute()
Exceptions
Type | Condition |
---|---|
IC4Exception | Check ErrorCode and ToString() for details. |