Class ClientAddress
Represents a client address with validation helpers.
public sealed class ClientAddress : IClientAddress
- Inheritance
-
ClientAddress
- Implements
- Inherited Members
Constructors
ClientAddress()
Initializes a new instance of the ClientAddress class.
public ClientAddress()
ClientAddress(string?)
Initializes a new instance of the ClientAddress class with the specified value.
public ClientAddress(string? value)
Parameters
valuestringThe IP address string to parse and store.
Properties
IpAddress
Gets the underlying IPAddress instance.
public IPAddress? IpAddress { get; }
Property Value
IsIPv4
Gets a value indicating whether indicates whether the address is IPv4.
public bool IsIPv4 { get; }
Property Value
- bool
A value indicating whether indicates whether the address is IPv4.
IsIPv6
Gets a value indicating whether indicates whether the address is IPv6.
public bool IsIPv6 { get; }
Property Value
- bool
A value indicating whether indicates whether the address is IPv6.
Value
Gets or sets the client address value.
public string? Value { get; set; }
Property Value
- string
The client address value.