public sealed class FieldReference 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 |
StringName of the field. May be null, which will be converted into an empty string. |
type |
SpannerDbTypeType of the field. Must not be null. |
value |
ObjectValue 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 |
|