Adds an element with the provided key and value to the
IDictionary.
Syntax
Example
BPlusTree/BPlusTree.Test/TestFileSerialized.cs
C# | Copy Code |
---|
try
{
using (BPlusTree<int, string> tree = new BPlusTree<int, string>(Options))
{
Assert.IsTrue(tree.TryAdd(1, "hi"));
TempFile.Delete();
}
Assert.Fail();
}
catch(IOException) { } |
VB.NET | Copy Code |
---|
Try
Using tree As New BPlusTree(Of Integer, String)(Options)
Assert.IsTrue(tree.TryAdd(1, "hi"))
TempFile.Delete()
End Using
Assert.Fail()
Catch generatedExceptionName As IOException
End Try |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also