Network byte order IP address
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
Syntax
| C# |
|---|
public uint ToUInt32() |
| Visual Basic |
|---|
Public Function ToUInt32 As UInteger |
| Visual C++ |
|---|
public: unsigned int ToUInt32() |
Return Value
Unsigned integer value representing the IP address in network byte order
Remarks
Convert internal byte array representation of the IP address into a network byte order
(most significant byte first) unsigned integer value.
To use the returned value in mathematical operations, you will need to change it to
host byte order on little endian systems (all i386 compatible systems). To do that,
call static method IpAddress.ReverseByteOrder().