The IpAddress type exposes the following methods.
Operators
| Member | Description | |
|---|---|---|
| Append(array<Byte>[]()[]) |
Append contents of the byte array to the class value. If class value is length 0, byte array
content is set as the class value.
(Inherited from OctetString.) | |
| Append(String) |
Append string value to the OctetString class. If current class content is length 0, new
string value is set as the value of this class.
Class assumes that string value is UTF8 encoded.
(Inherited from OctetString.) | |
| BuildMaskFromBits(Int32) |
Build a subnet mask from bit count value
| |
| Clone()()() | Create a new object that is a duplicate of the current object. (Overrides OctetString..::.Clone()()().) | |
| CompareTo(IpAddress) |
Compare two IpAddress classes
| |
| CompareTo(IPAddress) |
Compare class contents with the address stored in the supplied IPAddress class.
| |
| decode(array<Byte>[]()[], Int32) | Decode ASN.1 encoded IP address value. (Overrides OctetString..::.decode(array<Byte>[]()[], Int32).) | |
| encode(MutableByte) | BER encode OctetString variable. (Inherited from OctetString.) | |
| Equals(Object) |
Compare 2 IpAddress objects.
(Overrides OctetString..::.Equals(Object).) | |
| Explicit(IpAddress) | Allow explicit cast of the class as System.Net.IPAddress class. | |
| GetBroadcastAddress(IpAddress) |
Returns broadcast address for the objects IP and supplied subnet mask
| |
| GetClass()()() |
Return network class of the IP address
| |
| GetHashCode()()() |
Return hash representing the value of this object
(Overrides OctetString..::.GetHashCode()()().) | |
| GetMaskBits()()() |
Returns number of subnet bits in the mask.
| |
| GetSubnetAddress(IpAddress) |
Return subnet address of the IP address in this object and supplied subnet mask
| |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Increment(UInt32) |
Increment IP address contained in the object by specific number and return the result as a new
class.
| |
| Invert()()() |
Inverts IP address value. All 0s are converted to 1s and 1s to 0s
| |
| IsValidMask()()() |
Checks if the value of the object is a valid subnet mask
| |
| NetworkMask()()() |
Returns network mask for the class value
| |
| Reset()()() |
Reset internal buffer to null.
(Inherited from OctetString.) | |
| ReverseByteOrder(UInt32) |
Reverse int value byte order. Static function in IPAddress class doesn't work
the way I expected it (didn't troubleshoot)
| |
| Set(String) | Sets the class value to the IP address parsed from the string parameter. (Overrides OctetString..::.Set(String).) | |
| Set(UInt32) |
Set class value from 32-bit unsigned integer value representation of the IP address value
| |
| Set(Byte) |
Set class value to an array 1 byte long and set the value to the supplied argument.
(Inherited from OctetString.) | |
| Set(array<Byte>[]()[]) |
Set class value from the argument byte array. If byte array argument is null or length == 0,
internal OctetString buffer is set to null.
(Inherited from OctetString.) | |
| Set(Int32, Byte) |
Set value at specified position to the supplied value
(Inherited from OctetString.) | |
| ToArray()()() |
Convert the OctetString class to a byte array. Internal class data buffer is *copied* and not passed to the caller.
(Inherited from OctetString.) | |
| ToHexString()()() |
Return string formatted hexadecimal representation of the objects value.
(Inherited from OctetString.) | |
| ToMACAddressString()()() | Utility function to print a MAC address (binary string of 6 byte length. (Inherited from OctetString.) | |
| ToString()()() | Returns the application string as a dotted decimal represented IP address. (Overrides OctetString..::.ToString()()().) | |
| ToUInt32()()() |
Network byte order IP address
|