> ## 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 ItemsContainerModelBase<TObject>

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

```csharp theme={null}
public abstract class ItemsContainerModelBase<TObject> : ValidatableBase, IObservableObject, IDisposableObject, IValidatable where TObject : class, IHasGuid, IDisposable
```

#### Type Parameters

`TObject`

#### Inheritance

object ←
ObservableObject ←
[ValidatableBase](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs) ←
[ItemsContainerModelBase\<TObject>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Drivetrain.VehicleSimulator.ItemsContainerModelBase-1.md)

#### Implements

IObservableObject,
IDisposableObject,
IValidatable

#### Inherited Members

[ValidatableBase.RaisePropertyChanged(string)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.SuspendValidate()](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.Validate()](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.Validate(ValidationContext)](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.DisposeManagedResources()](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.CanValidate](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.Errors](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.HasValidationAttribute](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.HasValidator](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.IsValid](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.ValidateTrigger](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
[ValidatableBase.ErrorsChanged](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Common/VM.Extensions/Models/ValidatableBase.cs),
ObservableObject.Dispose(),
ObservableObject.RaisePropertyChanged(string),
ObservableObject.RaisePropertyChanged(string, object, object),
ObservableObject.Dispose(bool),
ObservableObject.DisposeManagedResources(),
ObservableObject.DisposeUnmanagedResources(),
ObservableObject.IsDisposed,
ObservableObject.TryDisposing,
ObservableObject.Disposed,
ObservableObject.Disposing,
ObservableObject.PropertyChanged

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ItemsContainerModelBase()

```csharp theme={null}
[JsonConstructor]
public ItemsContainerModelBase()
```

## Fields

### cleanUpTarget

```csharp theme={null}
protected readonly CompositeDisposable cleanUpTarget
```

#### Field Value

CompositeDisposable

## Properties

### All

```csharp theme={null}
[JsonIgnore]
public IConnectableObservable<IChangeSet<TObject, Guid>> All { get; }
```

#### Property Value

IConnectableObservable\<IChangeSet\<TObject, Guid>>

### Items

```csharp theme={null}
[JsonIgnore]
protected IObservableCollection<TObject> Items { get; }
```

#### Property Value

IObservableCollection\<TObject>

### ItemsCount

```csharp theme={null}
[JsonIgnore]
public int ItemsCount { get; }
```

#### Property Value

int

### ObservableItems

```csharp theme={null}
[JsonIgnore]
public IObservable<IChangeSet<TObject, Guid>> ObservableItems { get; }
```

#### Property Value

IObservable\<IChangeSet\<TObject, Guid>>

### this\[int]

```csharp theme={null}
public TObject this[int index] { get; }
```

#### Property Value

TObject

## Methods

### AddItem(TObject)

```csharp theme={null}
public virtual void AddItem(TObject item)
```

#### Parameters

`item` TObject

### Contains(Guid)

```csharp theme={null}
public bool Contains(Guid key)
```

#### Parameters

`key` Guid

#### Returns

bool

### Contains(TObject)

```csharp theme={null}
public bool Contains(TObject item)
```

#### Parameters

`item` TObject

#### Returns

bool

### DisposeManagedResources()

```csharp theme={null}
protected override void DisposeManagedResources()
```

### RemoveItem(Guid)

```csharp theme={null}
public void RemoveItem(Guid key)
```

#### Parameters

`key` Guid

### TryGetItem(Guid, out TObject)

```csharp theme={null}
public bool TryGetItem(Guid key, out TObject item)
```

#### Parameters

`key` Guid

`item` TObject

#### Returns

bool
