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
IEquatable<TransactionId>Namespace
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 |
Int32 |
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. |