Share via


Int32OrStringV1.Explicit Operator

Definition

Overloads

Explicit(Int32OrStringV1 to Int32)

Gets the value as a 32-bit integer.

Explicit(Int32OrStringV1 to String)

Gets the value as a string.

Explicit(Int32OrStringV1 to Int32)

Source:
Int32OrStringV1.cs
Source:
Int32OrStringV1.cs

Gets the value as a 32-bit integer.

public static explicit operator int(Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 value);
static member op_Explicit : Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 -> int
Public Shared Narrowing Operator CType (value As Int32OrStringV1) As Integer

Parameters

value
Int32OrStringV1

The value to get.

Returns

Exceptions

Thrown if the value isn't a valid integer.

Applies to

Explicit(Int32OrStringV1 to String)

Source:
Int32OrStringV1.cs
Source:
Int32OrStringV1.cs

Gets the value as a string.

public static explicit operator string?(Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1? value);
static member op_Explicit : Aspire.Hosting.Kubernetes.Resources.Int32OrStringV1 -> string
Public Shared Narrowing Operator CType (value As Int32OrStringV1) As String

Parameters

value
Int32OrStringV1

The value to get.

Returns

The value as a string.

Applies to