Skip to content

PgGucEnumOption

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Describes one label of an enumerated configuration parameter defined at run time.

public readonly struct PgGucEnumOption : IEquatable<PgGucEnumOption>

Implements: IEquatable<PgGucEnumOption>

Describes one label of an enumerated configuration parameter defined at run time.

public PgGucEnumOption(string Name, int Value, bool Hidden = false)

Parameters:

Name — string

The label PostgreSQL accepts, compared with its case-insensitive ASCII rules.

Value — int

The ordinal stored for the label; aliases share an ordinal, and the first label is displayed.

Hidden — bool

Whether the label is accepted but omitted from lists of available values.

Deconstruct(out string, out int, out bool)

Section titled “Deconstruct(out string, out int, out bool)”
public void Deconstruct(out string Name, out int Value, out bool Hidden)

Parameters:

Name — string

Value — int

Hidden — bool

public bool Equals(PgGucEnumOption other)

Parameters:

other — PgGucEnumOption

Returns: bool

public override bool Equals(object obj)

Parameters:

obj — object

Returns: bool

public override int GetHashCode()

Returns: int

public override string ToString()

Returns: string

Whether the label is accepted but omitted from lists of available values.

public bool Hidden { get; init; }

Value: bool

The label PostgreSQL accepts, compared with its case-insensitive ASCII rules.

public string Name { get; init; }

Value: string

The ordinal stored for the label; aliases share an ordinal, and the first label is displayed.

public int Value { get; init; }

Value: int

operator ==(PgGucEnumOption, PgGucEnumOption)

Section titled “operator ==(PgGucEnumOption, PgGucEnumOption)”
public static bool operator ==(PgGucEnumOption left, PgGucEnumOption right)

Parameters:

left — PgGucEnumOption

right — PgGucEnumOption

Returns: bool

operator !=(PgGucEnumOption, PgGucEnumOption)

Section titled “operator !=(PgGucEnumOption, PgGucEnumOption)”
public static bool operator !=(PgGucEnumOption left, PgGucEnumOption right)

Parameters:

left — PgGucEnumOption

right — PgGucEnumOption

Returns: bool