Class TransactionId (4.0.0)

public sealed class TransactionId : IEquatable<TransactionId>

A TransactionId holds identifying information about an active transaction in Cloud Spanner. Since it is serializable, it enables you to send this information to another process or machine so it may connect to the same transaction.

Inheritance

Object > TransactionId

Namespace

Google.Cloud.Spanner.Data

Assembly

Google.Cloud.Spanner.Data.dll

Properties

ConnectionString

public string ConnectionString { get; }

The connection string this transaction was created in.

Property Value
TypeDescription
String

Methods

FromBase64String(String)

public static TransactionId FromBase64String(string base64String)

Creates an instance of TransactionId given its Base64 encoded string.

Parameter
NameDescription
base64StringString

The string provided by ToBase64String().

Returns
TypeDescription
TransactionId

A new instance of TransactionId.

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32
Overrides

ToBase64String()

public string ToBase64String()

Returns a Base64 encoded string that can later be serialized back into a TransactionId using FromBase64String(String)

Returns
TypeDescription
String

The base64 encoded string.