Struct NpgsqlInet
- Namespace
- NpgsqlTypes
- Assembly
- Npgsql.dll
Represents a PostgreSQL inet type, which is a combination of an IPAddress and a subnet mask.
public readonly record struct NpgsqlInet : IEquatable<NpgsqlInet>
- Implements
- Inherited Members
Remarks
Constructors
NpgsqlInet(IPAddress)
public NpgsqlInet(IPAddress address)
Parameters
address
IPAddress
NpgsqlInet(IPAddress, byte)
public NpgsqlInet(IPAddress address, byte netmask)
Parameters
NpgsqlInet(string)
public NpgsqlInet(string addr)
Parameters
addr
string
Properties
Address
public IPAddress Address { get; }
Property Value
Netmask
public byte Netmask { get; }
Property Value
Methods
Deconstruct(out IPAddress, out byte)
public void Deconstruct(out IPAddress address, out byte netmask)
Parameters
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
explicit operator IPAddress(NpgsqlInet)
public static explicit operator IPAddress(NpgsqlInet inet)
Parameters
inet
NpgsqlInet
Returns
implicit operator NpgsqlInet(IPAddress)
public static implicit operator NpgsqlInet(IPAddress ip)
Parameters
ip
IPAddress