Google.Cloud.Spanner.Data - Class SpannerStruct.Field (5.0.0-beta02)

public sealed class SpannerStruct.Field

Reference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerStruct.Field.

A field within a struct.

Inheritance

object > SpannerStruct.Field

Namespace

Google.Cloud.Spanner.Data

Assembly

Google.Cloud.Spanner.Data.dll

Constructors

Field(string, SpannerDbType, object)

public Field(string name, SpannerDbType type, object value)

Constructs a struct field with the given name, type and value.

Parameters
NameDescription
namestring

Name of the field. May be null, which will be converted into an empty string.

typeSpannerDbType

Type of the field. Must not be null.

valueobject

Value of the field. May be null.

Properties

Name

public string Name { get; }

Name of the field in the struct; will never be null, but may be empty.

Property Value
TypeDescription
string

Type

public SpannerDbType Type { get; }

Type of the field. Never null.

Property Value
TypeDescription
SpannerDbType

Value

public object Value { get; }

Value of the field. May be null.

Property Value
TypeDescription
object