> ## 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 ObservableKeyedCollectionBase<TKey, TItem>

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

```csharp theme={null}
public abstract class ObservableKeyedCollectionBase<TKey, TItem> : KeyedCollection<TKey, TItem>
```

#### Type Parameters

`TKey`

`TItem`

#### Inheritance

object ←
Collection\<TItem> ←
KeyedCollection\<TKey, TItem> ←
[ObservableKeyedCollectionBase\<TKey, TItem>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Collections.ObservableKeyedCollectionBase-2.md)

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

### ObservableKeyedCollectionBase()

```csharp theme={null}
protected ObservableKeyedCollectionBase()
```

## Methods

### \<>OnPropertyChanged(PropertyChangedEventArgs)

```csharp theme={null}
protected void <>OnPropertyChanged(PropertyChangedEventArgs eventArgs)
```

#### Parameters

`eventArgs` PropertyChangedEventArgs

### AddRange(IEnumerable\<TItem>)

```csharp theme={null}
public void AddRange(IEnumerable<TItem> items)
```

#### Parameters

`items` IEnumerable\<TItem>

### ClearItems()

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

### InsertItem(int, TItem)

```csharp theme={null}
protected override void InsertItem(int index, TItem item)
```

#### Parameters

`index` int

`item` TItem

### OnCollectionChanged(NotifyCollectionChangedEventArgs)

```csharp theme={null}
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
```

#### Parameters

`e` NotifyCollectionChangedEventArgs

### RemoveItem(int)

```csharp theme={null}
protected override void RemoveItem(int index)
```

#### Parameters

`index` int

### SetItem(int, TItem)

```csharp theme={null}
protected override void SetItem(int index, TItem newitem)
```

#### Parameters

`index` int

`newitem` TItem

### TryGetValue(TKey, out TItem)

```csharp theme={null}
public bool TryGetValue(TKey key, out TItem item)
```

#### Parameters

`key` TKey

`item` TItem

#### Returns

bool

### CollectionChanged

```csharp theme={null}
public event NotifyCollectionChangedEventHandler CollectionChanged
```

#### Event Type

NotifyCollectionChangedEventHandler

### PropertyChanged

```csharp theme={null}
public event PropertyChangedEventHandler PropertyChanged
```

#### Event Type

PropertyChangedEventHandler
