Class SyncMetadata
This class specifies a collection of SyncParameter, that can be included in a SyncObject or a SyncObjectInstance.
Inherited Members
Namespace: Unity.Reflect.Model
Syntax
public class SyncMetadata
Constructors
SyncMetadata()
Creates an empty SyncMetadata.
Declaration
public SyncMetadata()
SyncMetadata(IDictionary<String, SyncParameter>)
Creates a SyncMetadata filled with the provided values.
Declaration
public SyncMetadata(IDictionary<string, SyncParameter> values)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<String, SyncParameter> | values | The initial values of the SyncMetadata |
Properties
Item[String]
Gets or sets a parameter in the collection via its key.
Declaration
public SyncParameter this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
String | key | The key of the parameter |
Property Value
Type | Description |
---|---|
SyncParameter |
Parameters
A dictionary representation of the collection.
Declaration
public Dictionary<string, SyncParameter> Parameters { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<String, SyncParameter> |
Methods
Add(String, SyncParameter)
Adds a parameter to the collection, using the specified key.
Declaration
public void Add(string key, SyncParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
String | key | The parameter key |
SyncParameter | parameter | The parameter to add in the collection |
ContainsKey(String)
Checks whether the specified key is present in the collection.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
String | key | The searched key |
Returns
Type | Description |
---|---|
Boolean | Whether the specified key is present in the collection |
Count()
Retrieves the number of parameters in the collection.
Declaration
public int Count()
Returns
Type | Description |
---|---|
Int32 |