> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class CommandBase

Namespace: [VM](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM)\
Assembly: VM.dll

```csharp theme={null}
public abstract class CommandBase : ObservableObject, IObservableObject, IDisposableObject
```

#### Inheritance

object ←
[ObservableObject](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md) ←
[CommandBase](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.CommandBase.md)

#### Implements

[IObservableObject](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.IObservableObject.md),
[IDisposableObject](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.IDisposableObject.md)

#### Inherited Members

[ObservableObject.Dispose()](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_Dispose),
[ObservableObject.RaisePropertyChanged(string)](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_RaisePropertyChanged_System_String_),
[ObservableObject.RaisePropertyChanged(string, object, object)](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_RaisePropertyChanged_System_String_System_Object_System_Object_),
[ObservableObject.Dispose(bool)](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_Dispose_System_Boolean_),
[ObservableObject.DisposeManagedResources()](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_DisposeManagedResources),
[ObservableObject.DisposeUnmanagedResources()](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_DisposeUnmanagedResources),
[ObservableObject.IsDisposed](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_IsDisposed),
[ObservableObject.TryDisposing](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_TryDisposing),
[ObservableObject.Disposed](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_Disposed),
[ObservableObject.Disposing](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_Disposing),
[ObservableObject.PropertyChanged](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.ObservableObject.md#VM_ObservableObject_PropertyChanged)

## Constructors

### CommandBase(Func\<object, bool>)

```csharp theme={null}
public CommandBase(Func<object, bool> canExecute)
```

#### Parameters

`canExecute` Func\<object, bool>

## Properties

### Description

```csharp theme={null}
public string Description { get; set; }
```

#### Property Value

string

### IsExecuting

```csharp theme={null}
protected bool IsExecuting { get; set; }
```

#### Property Value

bool

## Methods

### CanExecute(object)

```csharp theme={null}
public bool CanExecute(object parameter)
```

#### Parameters

`parameter` object

#### Returns

bool

### OnCanExecuteChanged()

```csharp theme={null}
protected void OnCanExecuteChanged()
```

### OnShouldExecute()

```csharp theme={null}
protected void OnShouldExecute()
```

### CanExecuteChanged

```csharp theme={null}
public virtual event EventHandler CanExecuteChanged
```

#### Event Type

EventHandler

### ShouldExecute

```csharp theme={null}
public event EventHandler ShouldExecute
```

#### Event Type

EventHandler
