Partager via


IAnnotationDictionary.Add<T>(T) Method

Definition

Adds an object to the dictionary by using the Type of the object for the key.

public:
generic <typename T>
 void Add(T value);
public void Add<T> (T value);
abstract member Add : 'T -> unit
Public Sub Add(Of T) (value As T)

Type Parameters

T

The type of the object to add. This is the key of the object in the dictionary.

Parameters

value
T

The object to add.

Exceptions

An object with the same type already exists in the dictionary.

Applies to