Set the given key to the given integer value. The number will
be stored as a String in decimal representation. Therefore, you
can retrieve the value later by calling either by getInt(),
getDouble(), or getString().
Namespace: Endeca.LoggingAssembly: Endeca.Logging (in Endeca.Logging.dll) Version: 6.1.3.0
Syntax
| C# |
|---|
public void AddInt( string key, int value ) |
| Visual Basic |
|---|
Public Sub AddInt ( _ key As String, _ value As Integer _ ) |
| Visual C++ |
|---|
public: void AddInt( String^ key, int value ) |
Parameters
- key
- Type: System..::..String
The String to use as the key of the element to set.
- value
- Type: System..::..Int32
The int to use as the value of the element to add.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | An element with the same key already exists |