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 to add. It must not already exist in the collection.

Exceptions

ArgumentNullException

Thrown if the metadata 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 by specifying a key and a value.

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

Parameters

item KeyValuePair<string, string>

The KeyValuePair representing the key and value to add.

Exceptions

ArgumentException

Thrown if a metadata entry with the same key already exists in the 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

The key of the metadata to add.

value string

The value associated with the key.

Exceptions

ArgumentException

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