IPAddress
Overview
Type to hold ipv4 and ipv6 addresses.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Platforms: Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, visionOS, visionOS Simulator, watchOS, watchOS Simulator, Windows
constructor (declared in Object)
constructor
IPAddress()
init()
IPAddress()
Sub New()
constructor (array of Byte)
Creates an address from a byte array.
constructor(anAddress: array of Byte)
IPAddress(Byte[] anAddress)
init(_ anAddress: Byte...)
IPAddress(Byte[] anAddress)
Sub New(anAddress As Byte())
Parameters:
- anAddress:
Creates an address from a byte array.
Parameters:
- anAddress:
- aScopeId:
constructor (Int64)
Creates an address from an int64.
constructor(newAddress: Int64)
IPAddress(Int64 newAddress)
init(_ newAddress: Int64)
IPAddress(Int64 newAddress)
Sub New(newAddress As Int64)
Parameters:
- newAddress:
Address
Address value.
property Address: Int64 read write;
Int64 Address { get; set; }
var Address: Int64 { get{} set{} }
Int64 Address { __get; __set; }
Property Address() As Int64
AddressFamily
Address family.
property AddressFamily: AddressFamily read write;
AddressFamily AddressFamily { get; set; }
var AddressFamily: AddressFamily { get{} set{} }
AddressFamily AddressFamily { __get; __set; }
Property AddressFamily() As AddressFamily
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetAddressBytes
Returns the address bytes.
method GetAddressBytes: array of Byte
Byte[] GetAddressBytes()
func GetAddressBytes() -> Byte...
Byte[] GetAddressBytes()
Function GetAddressBytes() As Byte()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
IPv4Length
Length of an ipv4 address.
const IPv4Length: Int32 = 4;
const Int32 IPv4Length = 4
static let IPv4Length: Int32 = 4
static final Int32 IPv4Length = 4
Dim IPv4Length As Int32 = 4
IPv6Length
Length of an ipv6 address.
const IPv6Length: Int32 = 16;
const Int32 IPv6Length = 16
static let IPv6Length: Int32 = 16
static final Int32 IPv6Length = 16
Dim IPv6Length As Int32 = 16
Parse
Parses an address to an IPAddress.
Parameters:
- ipString:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ScopeId
Contains the ipv6 scope.
property ScopeId: Int64 read write;
Int64 ScopeId { get; set; }
var ScopeId: Int64 { get{} set{} }
Int64 ScopeId { __get; __set; }
Property ScopeId() As Int64
ToString virtual (declared in Object)
Gets the string representation of this method.
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
TryParse
Parses an address to an IPAddress. Returns true on success.
Parameters:
- ipString:
- address:
IPv4Length
Length of an ipv4 address.
const IPv4Length: Int32 = 4;
const Int32 IPv4Length = 4
static let IPv4Length: Int32 = 4
static final Int32 IPv4Length = 4
Dim IPv4Length As Int32 = 4
IPv6Length
Length of an ipv6 address.
Address
Address value.
property Address: Int64 read write;
Int64 Address { get; set; }
var Address: Int64 { get{} set{} }
Int64 Address { __get; __set; }
Property Address() As Int64
AddressFamily
Address family.
property AddressFamily: AddressFamily read write;
AddressFamily AddressFamily { get; set; }
var AddressFamily: AddressFamily { get{} set{} }
AddressFamily AddressFamily { __get; __set; }
Property AddressFamily() As AddressFamily
ScopeId
Contains the ipv6 scope.
Parse
Parses an address to an IPAddress.
Parameters:
- ipString:
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
TryParse
Parses an address to an IPAddress. Returns true on success.
Parameters:
- ipString:
- address:
constructor (declared in Object)
constructor
IPAddress()
init()
IPAddress()
Sub New()
constructor (array of Byte)
Creates an address from a byte array.
constructor(anAddress: array of Byte)
IPAddress(Byte[] anAddress)
init(_ anAddress: Byte...)
IPAddress(Byte[] anAddress)
Sub New(anAddress As Byte())
Parameters:
- anAddress:
Creates an address from a byte array.
Parameters:
- anAddress:
- aScopeId:
constructor (Int64)
Creates an address from an int64.
constructor(newAddress: Int64)
IPAddress(Int64 newAddress)
init(_ newAddress: Int64)
IPAddress(Int64 newAddress)
Sub New(newAddress As Int64)
Parameters:
- newAddress:
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetAddressBytes
Returns the address bytes.
method GetAddressBytes: array of Byte
Byte[] GetAddressBytes()
func GetAddressBytes() -> Byte...
Byte[] GetAddressBytes()
Function GetAddressBytes() As Byte()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
ToString virtual (declared in Object)
Gets the string representation of this method.