LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly)
LEAD Technologies, Inc

Add(TKey,TValue) Method






The object to use as the key of the element to add.
The object to use as the value of the element to add.
Adds an element with the provided key and value to the IDictionary.
Syntax
public virtual void Add( 
   TKey key,
   TValue value
)
'Declaration
 
Public Overloads Overridable Sub Add( _
   ByVal key As TKey, _
   ByVal value As TValue _
) 
'Usage
 
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
 
instance.Add(key, value)
public virtual void Add( 
   TKey key,
   TValue value
)
 function Leadtools.Dicom.AddIn.ThreadSafeDictionary.Add(`0,`1)( 
   key ,
   value 
)
public:
virtual void Add( 
   TKey^ key,
   TValue^ value
) 

Parameters

key
The object to use as the key of the element to add.
value
The object to use as the value of the element to add.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionkey is null.
System.ArgumentExceptionAn element with the same key already exists in the IDictionary.
System.NotSupportedExceptionThe IDictionary is read-only.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ThreadSafeDictionary<TKey,TValue> Class
ThreadSafeDictionary<TKey,TValue> Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features