Share via


ConditionalValue<TValue> Struct

Definition

Result class returned by Reliable Collections APIs that may or may not return a value.

public struct ConditionalValue<TValue>
type ConditionalValue<'Value> = struct
Public Structure ConditionalValue(Of TValue)

Type Parameters

TValue

The type of the value returned by this <cref name="ConditionalValue{TValue}"></cref>.

Inheritance
ConditionalValue<TValue>

Constructors

ConditionalValue<TValue>(Boolean, TValue)

Initializes a new instance of the <cref name="ConditionalValue{TValue}"></cref> class with the given value.

Properties

HasValue

Gets a value indicating whether the current <cref name="ConditionalValue{TValue}"></cref> object has a valid value of its underlying type.

Value

Gets the value of the current <cref name="ConditionalValue{TValue}"></cref> object if it has been assigned a valid underlying value.

Applies to