# Class PostgresEnumType

Namespace
  Npgsql.PostgresTypes

Assembly
  Npgsql.dll

Represents a PostgreSQL enum data type.

    public class PostgresEnumType : PostgresType

Inheritance
  object
  PostgresType
  PostgresEnumType

Inherited Members
  PostgresType.OID
  PostgresType.Namespace
  PostgresType.Name
  PostgresType.FullName
  PostgresType.DisplayName
  PostgresType.InternalName
  PostgresType.Array
  PostgresType.Range
  PostgresType.ToString()
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)

## Remarks

See https://www.postgresql.org/docs/current/static/datatype-enum.html.

## Constructors

### PostgresEnumType(string, string, uint)

Constructs a representation of a PostgreSQL enum data type.

    protected PostgresEnumType(string ns, string name, uint oid)

#### Parameters

`ns` string
`name` string
`oid` uint

## Properties

### Labels

The enum's fields.

    public IReadOnlyList<string> Labels { get; }

#### Property Value

IReadOnlyList<string>