public sealed class TransactionId : IEquatable<TransactionId>
Reference documentation and code samples for the Google.Cloud.Spanner.Data 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
IEquatableTransactionIdNamespace
Google.Cloud.Spanner.DataAssembly
Google.Cloud.Spanner.Data.dll
Properties
ConnectionString
public string ConnectionString { get; }
The connection string this transaction was created in.
Property Value | |
---|---|
Type | Description |
string |
Methods
FromBase64String(string)
public static TransactionId FromBase64String(string base64String)
Creates an instance of TransactionId given its Base64 encoded string.
Parameter | |
---|---|
Name | Description |
base64String | string The string provided by ToBase64String(). |
Returns | |
---|---|
Type | Description |
TransactionId | A new instance of TransactionId. |
GetHashCode()
public override int GetHashCode()
Returns | |
---|---|
Type | Description |
int |
ToBase64String()
public string ToBase64String()
Returns a Base64 encoded string that can later be serialized back into a TransactionId using FromBase64String(string)
Returns | |
---|---|
Type | Description |
string | The base64 encoded string. |