Sets the class value to the IP address parsed from the string parameter.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
Parameters
- value
- String
IP address encoded as a string or host name
Remarks
Class value will be set with the parsed dotted decimal IP address in the parameter or
if string parameter does not represent an IP address, DNS resolution
will be performed.
Note: DNS resolution is performed using GetHostEntry(String) and can result
in a longer then expected delay in this function. In applications where responsiveness is
important, name resolution should be performed using async methods available and result passed
to this method.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | Thrown when DNS resolution of the parameter value has failed. |