public sealed class SpannerStruct.Field
Reference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerStruct.Field.
A field within a struct.
Namespace
Google.Cloud.Spanner.DataAssembly
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 | |
---|---|
Name | Description |
name | string Name of the field. May be null, which will be converted into an empty string. |
type | SpannerDbType Type of the field. Must not be null. |
value | object 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 | |
---|---|
Type | Description |
string |
Type
public SpannerDbType Type { get; }
Type of the field. Never null.
Property Value | |
---|---|
Type | Description |
SpannerDbType |
Value
public object Value { get; }
Value of the field. May be null.
Property Value | |
---|---|
Type | Description |
object |