> ## 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 ObservableValuesDictionary<TKey, TValue>

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

```csharp theme={null}
public class ObservableValuesDictionary<TKey, TValue>
```

#### Type Parameters

`TKey`

`TValue`

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ObservableValuesDictionary\<TKey, TValue>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Collections.ObservableValuesDictionary-2.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/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/2025-r2/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/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ObservableValuesDictionary()

```csharp theme={null}
public ObservableValuesDictionary()
```

## Properties

### Count

```csharp theme={null}
public int Count { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### IsReadOnly

```csharp theme={null}
public bool IsReadOnly { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Keys

```csharp theme={null}
public ICollection<TKey> Keys { get; }
```

#### Property Value

[ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)\<TKey>

### Values

```csharp theme={null}
public ReadOnlyObservableCollection<TValue> Values { get; }
```

#### Property Value

[ReadOnlyObservableCollection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.readonlyobservablecollection-1)\<TValue>

### this\[TKey]

```csharp theme={null}
public TValue this[TKey key] { get; set; }
```

#### Property Value

TValue

## Methods

### Add(TKey, TValue)

```csharp theme={null}
public void Add(TKey key, TValue value)
```

#### Parameters

`key` TKey

`value` TValue

### Clear()

```csharp theme={null}
public void Clear()
```

### Contains(KeyValuePair\<TKey, TValue>)

```csharp theme={null}
public bool Contains(KeyValuePair<TKey, TValue> item)
```

#### Parameters

`item` [KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)\<TKey, TValue>

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### ContainsKey(TKey)

```csharp theme={null}
public bool ContainsKey(TKey key)
```

#### Parameters

`key` TKey

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### ContainsValue(TValue)

```csharp theme={null}
public bool ContainsValue(TValue value)
```

#### Parameters

`value` TValue

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CopyTo(KeyValuePair\<TKey, TValue>\[], int)

```csharp theme={null}
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
```

#### Parameters

`array` [KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)\<TKey, TValue>\[]

`arrayIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

### GetEnumerator()

```csharp theme={null}
public IEnumerator GetEnumerator()
```

#### Returns

[IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator)

### Remove(TKey)

```csharp theme={null}
public virtual bool Remove(TKey key)
```

#### Parameters

`key` TKey

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### TryGetValue(TKey, out TValue)

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

#### Parameters

`key` TKey

`value` TValue

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)
