GrpcAttributeMap
Namespace: IotaSdk
The value of each protocol attribute, keyed by attribute name.
public class GrpcAttributeMap : IGrpcAttributeMap, System.IDisposable
Inheritance Object → GrpcAttributeMap
Implements IGrpcAttributeMap, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
GrpcAttributeMap(UInt64)
public GrpcAttributeMap(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
ContainsKey(String)
Whether a value is stored under key.
public bool ContainsKey(string key)
Parameters
key String
Returns
Entries()
Every entry, in key order.
public GrpcAttributeMapEntry[] Entries()
Returns
Get(String)
The value stored under key, or None if there is none.
public string? Get(string key)
Parameters
key String
Returns
IsEmpty()
Whether the map holds no entries.
public bool IsEmpty()
Returns
Keys()
Every key, in key order.
public String[] Keys()
Returns
Len()
The number of entries.
public ulong Len()
Returns
Values()
Every value, ordered by the key it is stored under.
public String[] Values()
Returns
FromEntries(GrpcAttributeMapEntry[])
Collect entries into a map. A key repeated across entries keeps the value of the last one.
public static GrpcAttributeMap FromEntries(GrpcAttributeMapEntry[] entries)
Parameters
entries GrpcAttributeMapEntry[]