Skip to main content

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​

Boolean

Entries()​

Every entry, in key order.

public GrpcAttributeMapEntry[] Entries()

Returns​

GrpcAttributeMapEntry[]

Get(String)​

The value stored under key, or None if there is none.

public string? Get(string key)

Parameters​

key String

Returns​

String?

IsEmpty()​

Whether the map holds no entries.

public bool IsEmpty()

Returns​

Boolean

Keys()​

Every key, in key order.

public String[] Keys()

Returns​

String[]

Len()​

The number of entries.

public ulong Len()

Returns​

UInt64

Values()​

Every value, ordered by the key it is stored under.

public String[] Values()

Returns​

String[]

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[]

Returns​

GrpcAttributeMap