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>
Constructors
Section titled “Constructors”PgGucEnumOption(string, int, bool)
Section titled “PgGucEnumOption(string, int, bool)”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.
Methods
Section titled “Methods”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
Equals(PgGucEnumOption)
Section titled “Equals(PgGucEnumOption)”public bool Equals(PgGucEnumOption other)Parameters:
other — PgGucEnumOption
Returns: bool
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters:
obj — object
Returns: bool
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns: int
ToString()
Section titled “ToString()”public override string ToString()Returns: string
Properties
Section titled “Properties”Hidden
Section titled “Hidden”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
Operators
Section titled “Operators”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