Share via


Int32OrStringV1 Constructors

Definition

Overloads

Int32OrStringV1(Int32)

Initializes a new instance of the Int32OrStringV1 class with a 32-bit integer value.

Int32OrStringV1(String)

Initializes a new instance of the Int32OrStringV1 class with a string value.

Int32OrStringV1(Nullable<Int32>, String)

Represents a value that can be either a 32-bit integer or a string.

Int32OrStringV1(Int32)

Source:
Int32OrStringV1.cs
Source:
Int32OrStringV1.cs

Initializes a new instance of the Int32OrStringV1 class with a 32-bit integer value.

public Int32OrStringV1(int value);
new Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 : int -> Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1
Public Sub New (value As Integer)

Parameters

value
Int32

The integer value to initialize.

Applies to

Int32OrStringV1(String)

Source:
Int32OrStringV1.cs
Source:
Int32OrStringV1.cs

Initializes a new instance of the Int32OrStringV1 class with a string value.

public Int32OrStringV1(string? value);
new Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 : string -> Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1
Public Sub New (value As String)

Parameters

value
String

The string value to initialize.

Applies to

Int32OrStringV1(Nullable<Int32>, String)

Source:
Int32OrStringV1.cs
Source:
Int32OrStringV1.cs

Represents a value that can be either a 32-bit integer or a string.

public Int32OrStringV1(int? Number = default, string? Text = default);
new Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 : Nullable<int> * string -> Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1
Public Sub New (Optional Number As Nullable(Of Integer) = Nothing, Optional Text As String = Nothing)

Parameters

Number
Nullable<Int32>
Text
String

Remarks

This class provides functionality to handle values that could be either an integer or a string. It supports implicit and explicit conversions, equality comparisons, and YAML serialization/deserialization handling.

Applies to