Table of Contents

Method Add

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

Add(Metadata)

Adds a metadata entry to the collection.

public void Add(Metadata metadata)

Parameters

metadata Metadata

The metadata entry to add. Must not be null and must have a unique key.

Exceptions

ArgumentNullException

Thrown if the metadata entry is null.

ArgumentException

Thrown if a metadata entry with the same key already exists in the collection.

Add(KeyValuePair<string, string>)

Adds a metadata entry to the collection using a key-value pair.

public void Add(KeyValuePair<string, string> item)

Parameters

item KeyValuePair<string, string>

A KeyValuePair<TKey, TValue> representing the key and value to add.

Exceptions

ArgumentException

Thrown if a metadata entry with the same key already exists in the collection.

Add(MetadataCollection)

Adds all metadata entries from another MetadataCollection to this collection.

public void Add(MetadataCollection collection)

Parameters

collection MetadataCollection

The collection containing metadata entries to add.

Exceptions

ArgumentException

Thrown if any metadata entry in the provided collection has a key that already exists in the current collection.

Add(string, string)

Adds a metadata entry to the collection by specifying a key and a value.

public void Add(string key, string value)

Parameters

key string
value string