Sets the class value to the IP address parsed from the string parameter.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.7.0.0 (0.7.0.0)

Syntax

C#
public override void Set(
	string value
)
Visual Basic (Declaration)
Public Overrides Sub Set ( _
	value As String _
)
Visual C++
public:
virtual void Set(
	String^ value
) override

Parameters

value
Type: System..::.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

ExceptionCondition
System..::.ArgumentExceptionThrown when DNS resolution of the parameter value has failed.

See Also