Share via


Variant Struct

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Used to store primitive values without boxing, and other instances.

public readonly struct Variant
Inheritance
Variant

Constructors

Fields

Null

Null Variant.

Properties

IsNull

Indicates whether the Variant is null or has a value.

Type

Type of the instance stored in this value.

Methods

As<T>()

TBD.

Create<T>(T)

TBD.

ToString()

Returns the fully qualified type name of this instance.

TryGetValue<T>(T)

TBD.

Operators

Explicit(Variant to ArraySegment<Byte>)
Explicit(Variant to ArraySegment<Char>)
Explicit(Variant to Boolean)

TBD.

Explicit(Variant to Byte)

Casts value to byte, if possible.

Explicit(Variant to Char)

TBD.

Explicit(Variant to DateTime)

TBD.

Explicit(Variant to DateTimeOffset)

TBD.

Explicit(Variant to Decimal)

TBD.

Explicit(Variant to Double)

TBD.

Explicit(Variant to Int16)

TBD.

Explicit(Variant to Int32)

TBD.

Explicit(Variant to Int64)

TBD.

Explicit(Variant to Nullable<Boolean>)
Explicit(Variant to Nullable<Byte>)
Explicit(Variant to Nullable<Char>)
Explicit(Variant to Nullable<DateTime>)
Explicit(Variant to Nullable<DateTimeOffset>)
Explicit(Variant to Nullable<Decimal>)
Explicit(Variant to Nullable<Double>)
Explicit(Variant to Nullable<Int16>)
Explicit(Variant to Nullable<Int32>)
Explicit(Variant to Nullable<Int64>)
Explicit(Variant to Nullable<SByte>)
Explicit(Variant to Nullable<Single>)
Explicit(Variant to Nullable<UInt16>)
Explicit(Variant to Nullable<UInt32>)
Explicit(Variant to Nullable<UInt64>)
Explicit(Variant to SByte)

Casts value to sbyte, if possible.

Explicit(Variant to Single)

TBD.

Explicit(Variant to String)

TBD.

Explicit(Variant to UInt16)

TBD.

Explicit(Variant to UInt32)

TBD.

Explicit(Variant to UInt64)

TBD.

Implicit(ArraySegment<Byte> to Variant)

TBD.

Implicit(ArraySegment<Char> to Variant)

TBD.

Implicit(Boolean to Variant)

TBD.

Implicit(Byte to Variant)

Casts byte to value.

Implicit(Char to Variant)

TBD.

Implicit(DateTime to Variant)

TBD.

Implicit(DateTimeOffset to Variant)

TBD.

Implicit(Decimal to Variant)

TBD.

Implicit(Double to Variant)

TBD.

Implicit(Int16 to Variant)

TBD.

Implicit(Int32 to Variant)

TBD.

Implicit(Int64 to Variant)

TBD.

Implicit(Nullable<Boolean> to Variant)

TBD.

Implicit(Nullable<Byte> to Variant)

Casts nullable byte to value.

Implicit(Nullable<Char> to Variant)

TBD.

Implicit(Nullable<DateTime> to Variant)

TBD.

Implicit(Nullable<DateTimeOffset> to Variant)

TBD.

Implicit(Nullable<Decimal> to Variant)

TBD.

Implicit(Nullable<Double> to Variant)

TBD.

Implicit(Nullable<Int16> to Variant)

TBD.

Implicit(Nullable<Int32> to Variant)

TBD.

Implicit(Nullable<Int64> to Variant)

TBD.

Implicit(Nullable<SByte> to Variant)

Casts nullable sbyte to value.

Implicit(Nullable<Single> to Variant)

TBD.

Implicit(Nullable<UInt16> to Variant)

TBD.

Implicit(Nullable<UInt32> to Variant)

TBD.

Implicit(Nullable<UInt64> to Variant)

TBD.

Implicit(SByte to Variant)

Casts sbyte to value.

Implicit(Single to Variant)

TBD.

Implicit(String to Variant)

TBD.

Implicit(UInt16 to Variant)

TBD.

Implicit(UInt32 to Variant)

TBD.

Implicit(UInt64 to Variant)

TBD.

Applies to

Product Versions
Azure SDK for .NET Preview