CSharpTest.Net
TryAdd Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > SynchronizedDictionary<TKey,TValue> Class : TryAdd Method

Glossary Item Box

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

Overload List

OverloadDescription
TryAdd(TKey,TValue)Adds an element with the provided key and value to the IDictionary.  
TryAdd(TKey,Converter<TKey,TValue>)Adds an element with the provided key and value to the IDictionary by calling the provided factory method to construct the value if the key is not already present in the collection.  

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys