# KeyValuePairPropertyBag<TKey, TValue>

> A IPropertyBag<TContainer> implementation for a generic key/value pair.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Properties](/engine/6000.6/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule
* **Inherits from:** PropertyBag\<KeyValuePair\<T, T>>
* **Implements:** IPropertyBag\<KeyValuePair\<T, T>>, [IPropertyBag](/engine/6000.6/script-reference/unity/properties/ipropertybag.md), INamedProperties\<KeyValuePair\<T, T>>

```csharp
public class KeyValuePairPropertyBag<TKey, TValue> : PropertyBag<KeyValuePair<TKey, TValue>>, IPropertyBag<KeyValuePair<TKey, TValue>>, IPropertyBag, INamedProperties<KeyValuePair<TKey, TValue>>
```

## Methods

| Method                                                                                                        | Description                                           |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [TryGetProperty](/engine/6000.6/script-reference/unity/properties/keyvaluepairpropertybag2/trygetproperty.md) | Gets the property associated with the specified name. |

## Inheritance

**Inherited Members:**

* PropertyBag\<KeyValuePair\<T, T>>.Accept(ITypeVisitor)
* PropertyBag\<KeyValuePair\<T, T>>.GetProperties()
* PropertyBag\<KeyValuePair\<T, T>>.GetProperties(KeyValuePair\<T, T>)
* PropertyBag\<KeyValuePair\<T, T>>.Instantiate()
* PropertyBag\<KeyValuePair\<T, T>>.CreateInstance()
* PropertyBag\<KeyValuePair\<T, T>>.TryCreateInstance(KeyValuePair\<T, T>)
* PropertyBag\<KeyValuePair\<T, T>>.InstantiationKind()
