Class ServerDictionary
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
public class ServerDictionary
- Inheritance
-
objectServerDictionary
Properties
Count
public int Count { get; }
Property Value
- int
Methods
Clear()
public void Clear()
ContainsKey(string)
public bool ContainsKey(string key)
Parameters
keystring
Returns
- bool
Get<T>(string)
public T Get<T>(string key)
Parameters
keystring
Returns
- T
Type Parameters
T
IsNullOrEmpty()
public bool IsNullOrEmpty()
Returns
- bool
Remove(string)
public bool Remove(string key)
Parameters
keystring
Returns
- bool
Set<T>(string, T)
public void Set<T>(string key, T value)
Parameters
keystringvalueT
Type Parameters
T
ToDictionary()
public Dictionary<string, string> ToDictionary()
Returns
- Dictionary<string, string>
TryAdd<T>(string, T)
public bool TryAdd<T>(string key, T value)
Parameters
keystringvalueT
Returns
- bool
Type Parameters
T
TryGetValue<T>(string, out T)
public bool TryGetValue<T>(string key, out T value)
Parameters
keystringvalueT
Returns
- bool
Type Parameters
T