Struct NetworkDictionaryEvent<TKey, TValue>
Struct containing event information about changes to a NetworkDictionary.
Inherited Members
Namespace: Unity.Cloud.Presence.Runtime
Syntax
public struct NetworkDictionaryEvent<TKey, TValue>
Type Parameters
| Name | Description |
|---|---|
| TKey | The type for the dictionary key that the event is about |
| TValue | The type for the dictionary value that the event is about |
Properties
Key
the key changed, added or removed if available.
Declaration
public TKey Key { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| TKey |
PreviousValue
The previous value when "Value" has changed, if available.
Declaration
public TValue PreviousValue { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| TValue |
Type
Enum representing the operation made to the dictionary.
Declaration
public NetworkDictionaryEvent<TKey, TValue>.EventType Type { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkDictionaryEvent.EventType<> |
Value
The value changed, added or removed if available.
Declaration
public TValue Value { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| TValue |