Table of Contents

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

address IPAddress
netmask byte

NpgsqlInet(string)

public NpgsqlInet(string addr)

Parameters

addr string

Properties

Address

public IPAddress Address { get; }

Property Value

IPAddress

Netmask

public byte Netmask { get; }

Property Value

byte

Methods

Deconstruct(out IPAddress, out byte)

public void Deconstruct(out IPAddress address, out byte netmask)

Parameters

address IPAddress
netmask byte

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

IPAddress

implicit operator NpgsqlInet(IPAddress)

public static implicit operator NpgsqlInet(IPAddress ip)

Parameters

ip IPAddress

Returns

NpgsqlInet