Class
IPAddress
sealed class IPAddress
Module: System.Networking
Assembly: System.Networking.dll
Source file: IPAddress.rvn
Inheritance: Object → IPAddress
Implements: EquatableTo<IPAddress>
Closed hierarchy: only the permitted direct subtypes can extend this type.
Permitted direct subtypes: IPv4Address, IPv6Address
An immutable IP address in the closed IPv4 and IPv6 family.
Derived types
Documented types in this API reference. Indirect relationships are marked.
Constructors
1 item
IPAddress(bytes: byte[])
No summary available.
Methods
6 items
Equals(other: IPAddress) -> bool
Compares address family and bytes; reference identity does not affect equality.
Implements EquatableTo<IPAddress>.Equals
Equals(other: object?) -> bool
Compares another address by value; null and other objects are unequal.
Overrides Object.Equals
GetHashCode() -> int
Returns a hash consistent with address value equality.
Overrides Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Parse(text: string) -> Result<IPAddress, IPAddressError>
Parses a strict IPv4 or IPv6 literal without resolving a host name. Scope identifiers and URI brackets are not supported in this iteration.
ToString() -> string
Formats the address using decimal IPv4 or canonical lowercase IPv6.
Overrides Object.ToString