Increment IP address contained in the object by specific number and return the result as a new
class.
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
Syntax
Return Value
New class representing incremented IP address
Examples
CopyC#
IpAddress addr = new IpAddress("10.20.11.2");
Console.WriteLine("Starting IP: {0}", addr.ToString());
IpAddress incrAddr1 = addr.Increment(1);
Console.WriteLine("Incremented by 1: {0}", incrAddr1.ToString());
IpAddress incrAddr10 = addr.Increment(10);
Console.WriteLine("Incremented by 10: {0}", incrAddr10.ToString());
See Also