Get the integer value associated with the given key. If the value
was originally set via setString(), then this method will still
succeed as long as the value is a valid decimal integer.
Namespace: Endeca.LoggingAssembly: Endeca.Logging (in Endeca.Logging.dll) Version: 6.1.3.0
Syntax
| C# |
|---|
public int GetInt( string key ) |
| Visual Basic |
|---|
Public Function GetInt ( _ key As String _ ) As Integer |
| Visual C++ |
|---|
public: int GetInt( String^ key ) |
Parameters
- key
- Type: System..::..String
The String to use as the key of the element to get.
Return Value
Returns the integer value associated with the given key.
Exceptions
| Exception | Condition |
|---|---|
| System..::..FormatException | If the value is not numeric. |
| System..::..NullReferenceException | if no value is associated with the given key |