CosDictionary.AddNumber Method (String, Int64)

Adds the specified key and a new integer object to the dictionary.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void AddNumber(
	string key,
	long value
)
VB
Public Sub AddNumber ( 
	key As String,
	value As Long
)

Parameters

key
Type: System.String
The key of the element to add.
value
Type: System.Int64
The value of the integer object.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe key is null.
ArgumentException An element with the same key already exists in the dictionary.

Remarks

The key must not be null and should not start with a leading slash. Characters in the key should not be escaped. Empty string (string.Empty) is a valid key.

See Also