Constructor Metadata
Metadata(string, string)
Initializes a new instance of the Metadata class with the specified key and value.
public Metadata(string key, string value)
Parameters
key
stringThe key that identifies this metadata entry. It must not be null or empty.
value
stringThe value associated with the key. It must not be null.
Exceptions
- ArgumentNullException
Thrown if either
key
orvalue
is null, as both are essential for a valid metadata entry.- ArgumentException
Thrown if
key
is empty, since a key is required to meaningfully identify a metadata entry.