Method AddKey
AddKey(string, long)
Adds a new key to this SharedTableData if one does not already exists with the same id.
Declaration
public SharedTableData.SharedTableEntry AddKey(string key, long id)
Parameters
Type | Name | Description |
---|---|---|
string | key | The unique key name to assign to the entry. |
long | id | The unique id to assign to the key. |
Returns
Type | Description |
---|---|
SharedTableData.SharedTableEntry | The new entry or null if an entry already exists with the same id. |
AddKey(string)
Adds a new key to this SharedTableData with a default name. If the name already exists then a unique version is generated based on the provided name.
Declaration
public SharedTableData.SharedTableEntry AddKey(string key = null)
Parameters
Type | Name | Description |
---|---|---|
string | key | The name for the new Key. |
Returns
Type | Description |
---|---|
SharedTableData.SharedTableEntry |