Extensions Property
Extensions
The list of extensions. This is an optional parameter, so it can be null.
C#
public IReadOnlyDictionary<string, byte[]> Extensions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Byte[]> |
Remarks
To add an entry to the list, call AddExtension(String, Byte[]).
Each extension is a key/value pair. All keys are strings, but each extension has its own definition of a value. It could be an int, or it could be a map containing a string and a boolean,. It is the caller's responsibility to encode the value.
For each value, the standard (or the vendor in the case of vendor-defined extensions) will define the structure of the value. From that structure the value can be encoded following CBOR rules. The result of the encoding the value is what is stored in this dictionary.