Search Results for

    Show / Hide Table of Contents

    Struct NpgsqlCidr

    Represents a PostgreSQL cidr type.

    Implements
    System.IEquatable<><NpgsqlCidr>
    Namespace: NpgsqlTypes
    Assembly: Npgsql.dll
    Syntax
    public readonly record struct NpgsqlCidr : IEquatable<NpgsqlCidr>
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    Constructors

    | Improve this Doc View Source

    NpgsqlCidr(IPAddress, byte)

    Declaration
    public NpgsqlCidr(IPAddress address, byte netmask)
    Parameters
    Type Name Description
    IPAddress address
    byte netmask
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    | Improve this Doc View Source

    NpgsqlCidr(string)

    Declaration
    public NpgsqlCidr(string addr)
    Parameters
    Type Name Description
    string addr
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    Properties

    | Improve this Doc View Source

    Address

    Declaration
    public IPAddress Address { get; }
    Property Value
    Type Description
    IPAddress
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    | Improve this Doc View Source

    Netmask

    Declaration
    public byte Netmask { get; }
    Property Value
    Type Description
    byte
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    Methods

    | Improve this Doc View Source

    Deconstruct(out IPAddress, out byte)

    Declaration
    public void Deconstruct(out IPAddress address, out byte netmask)
    Parameters
    Type Name Description
    IPAddress address
    byte netmask
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    Operators

    | Improve this Doc View Source

    explicit operator IPAddress(NpgsqlCidr)

    Declaration
    public static explicit operator IPAddress(NpgsqlCidr cidr)
    Parameters
    Type Name Description
    NpgsqlCidr cidr
    Returns
    Type Description
    IPAddress
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    | Improve this Doc View Source

    implicit operator NpgsqlInet(NpgsqlCidr)

    Declaration
    public static implicit operator NpgsqlInet(NpgsqlCidr cidr)
    Parameters
    Type Name Description
    NpgsqlCidr cidr
    Returns
    Type Description
    NpgsqlInet
    Remarks

    https://www.postgresql.org/docs/current/static/datatype-net-types.html

    Implements

    System.IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team