←Select platform

Add(TKey,TValue) Method

Summary

Adds an element with the provided key and value to the IDictionary.

Syntax

C#
VB
C++
public virtual void Add(  
   TKey key, 
   TValue value 
) 
Public Overloads Overridable Sub Add( _ 
   ByVal key As TKey, _ 
   ByVal value As TValue _ 
) 
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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom.AddIn Assembly
Click or drag to resize