Dictionary.Add MethodAdds a key and item pair to a Dictionary object.object.Add (key, item) Arguments
RemarksAn error occurs if the key already exists.The following example illustrates the use of the Add method. var d; d = new Application.Dictionary(); d.Add("a", "Athens"); d.Add("b", "Belgrade"); d.Add("c", "Cairo"); Applies To:Dictionary ObjectRequirements |