Class SpannerStruct.Field
A field within a struct.
Namespace: Google.Cloud.Spanner.Data
Assembly: Google.Cloud.Spanner.Data.dll
Syntax
public sealed class SpannerStruct.Field
Constructors
Field(string, SpannerDbType, object)
Constructs a struct field with the given name, type and value.
Declaration
public Field(string name, SpannerDbType type, object value)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the field. May be null, which will be converted into an empty string. |
SpannerDbType | type | Type of the field. Must not be null. |
object | value | Value of the field. May be null. |
Properties
Name
Name of the field in the struct; will never be null, but may be empty.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Type
Type of the field. Never null.
Declaration
public SpannerDbType Type { get; }
Property Value
Type | Description |
---|---|
SpannerDbType |
Value
Value of the field. May be null.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
object |