The IpAddress type exposes the following members.

Constructors

  NameDescription
IpAddress
IpAddressOverloaded.

Methods

  NameDescription
AppendOverloaded.
BuildMaskFromBits
Build a subnet mask from bit count value
Clone
Clone current object.
(Overrides OctetString..::.Clone()()().)
CompareToOverloaded.
decode
Decode ASN.1 encoded IP address value.
(Overrides OctetString..::.decode(array<Byte>[]()[], Int32).)
encode
BER encode OctetString variable.
(Inherited from OctetString.)
Equals
Compare 2 IpAddress objects.
(Overrides OctetString..::.Equals(Object).)
FieldGetter (Inherited from Object.)
FieldSetter (Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetBroadcastAddress
Returns broadcast address for the objects IP and supplied subnet mask
GetClass
Return network class of the IP address
GetFieldInfo (Inherited from Object.)
GetHashCode
Return hash representing the value of this object
(Overrides OctetString..::.GetHashCode()()().)
GetMaskBits
Returns number of subnet bits in the mask.
GetSubnetAddress
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
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
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
NetworkMask
Returns network mask for the class value
Reset
Reset internal buffer to null.
(Inherited from OctetString.)
ReverseByteOrder
Reverse int value byte order. Static function in IPAddress class doesn't work the way I expected it (didn't troubleshoot)
SetOverloaded.
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

Operators

  NameDescription
Explicit
Allow explicit cast of the class as System.Net.IPAddress class.

Fields

  NameDescription
_asnType
ASN.1 type byte.
(Inherited from AsnType.)
ClassA
Class A IP address
ClassB
Class B IP address
ClassC
Class C IP address
ClassD
Class D IP address
ClassE
Class E IP address
InvalidClass
Invalid IP address class

Properties

  NameDescription
Item
Indexed access to the OctetString class data members.
CopyC#
OctetString os = new OctetString("test");
for(int i=0;i<=os.Length;i++) {
 Console.WriteLine("{0}",os[i]);
}
(Inherited from OctetString.)
Length
Get length of the internal byte array. 0 if byte array is undefined or zero length.
(Inherited from OctetString.)
Type
Return ASN.1 type of the object stored in this or derived class.
(Inherited from AsnType.)
Valid
Returns true if object contains a valid IP address value.

See Also