Class SelectOption
A selected option of a select or dictionary attribute.
Implements
Inherited Members
Namespace: Activout.Blue5.Attributes
Assembly: Activout.Blue5.dll
Syntax
public sealed record SelectOption : IEquatable<SelectOption>
Constructors
| Edit this page View SourceSelectOption(string, string?, string?, string?)
A selected option of a select or dictionary attribute.
Declaration
public SelectOption(string Id, string? Number, string? Value, string? Metadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Id | Option id. |
| string | Number | Option number (business key), if any. |
| string | Value | Display value in the current context. |
| string | Metadata | Option metadata as supplied by PAPI (raw JSON when not a string). |
Properties
| Edit this page View SourceId
Option id.
Declaration
public string Id { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Metadata
Option metadata as supplied by PAPI (raw JSON when not a string).
Declaration
public string? Metadata { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Number
Option number (business key), if any.
Declaration
public string? Number { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Display value in the current context.
Declaration
public string? Value { get; init; }
Property Value
| Type | Description |
|---|---|
| string |