Class 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.
Implements
Namespace: Google.Cloud.Spanner.Data
Assembly: Google.Cloud.Spanner.Data.dll
Syntax
public sealed class TransactionId : IEquatable<TransactionId>
Properties
ConnectionString
The connection string this transaction was created in.
Declaration
public string ConnectionString { get; }
Property Value
Type | Description |
---|---|
string |
Methods
FromBase64String(string)
Creates an instance of TransactionId given its Base64 encoded string.
Declaration
public static TransactionId FromBase64String(string base64String)
Parameters
Type | Name | Description |
---|---|---|
string | base64String | The string provided by ToBase64String(). |
Returns
Type | Description |
---|---|
TransactionId | A new instance of TransactionId. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
ToBase64String()
Returns a Base64 encoded string that can later be serialized back into a TransactionId using FromBase64String(string)
Declaration
public string ToBase64String()
Returns
Type | Description |
---|---|
string | The base64 encoded string. |