Google.Cloud.Spanner.Data - Class SpannerStruct.Field (4.2.0)

public sealed class 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