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 .

Inheritance
ConditionalValue<TValue>

Constructors

ConditionalValue<TValue>(Boolean, TValue)

Initializes a new instance of the class with the given value.

Properties

HasValue

Gets a value indicating whether the current object has a valid value of its underlying type.

Value

Gets the value of the current object if it has been assigned a valid underlying value.

Applies to