> ## 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/lib/VM.Collections)\
Assembly: VM.dll

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

#### Type Parameters

`TKey`

`TValue`

#### Inheritance

object ←
[ObservableValuesDictionary\<TKey, TValue>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Collections.ObservableValuesDictionary-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

### ObservableValuesDictionary()

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

## Properties

### Count

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

#### Property Value

int

### IsReadOnly

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

#### Property Value

bool

### Keys

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

#### Property Value

ICollection\<TKey>

### Values

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

#### Property Value

ReadOnlyObservableCollection\<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\<TKey, TValue>

#### Returns

bool

### ContainsKey(TKey)

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

#### Parameters

`key` TKey

#### Returns

bool

### ContainsValue(TValue)

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

#### Parameters

`value` TValue

#### Returns

bool

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

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

#### Parameters

`array` KeyValuePair\<TKey, TValue>\[]

`arrayIndex` int

### GetEnumerator()

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

#### Returns

IEnumerator

### Remove(TKey)

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

#### Parameters

`key` TKey

#### Returns

bool

### TryGetValue(TKey, out TValue)

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

#### Parameters

`key` TKey

`value` TValue

#### Returns

bool
