public sealed class TransactionOptions.Types.ReadOnly : IMessage<TransactionOptions.Types.ReadOnly>, IEquatable<TransactionOptions.Types.ReadOnly>, IDeepCloneable<TransactionOptions.Types.ReadOnly>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class TransactionOptions.Types.ReadOnly.
Options for a transaction that can only be used to read documents.
This must be a microsecond precision timestamp within the past one
hour, or if Point-in-Time Recovery is enabled, can additionally be a
whole minute timestamp within the past 7 days.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTransactionOptions.Types.ReadOnly\u003c/code\u003e class in the Firestore v1 API is designed for transactions that only read documents.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it versatile for different uses.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eTransactionOptions.Types.ReadOnly\u003c/code\u003e is 3.10.0, with several older versions ranging from 3.9.0 to 2.3.0 accessible.\u003c/p\u003e\n"],["\u003cp\u003eIt provides constructors, \u003ccode\u003eReadOnly()\u003c/code\u003e and \u003ccode\u003eReadOnly(TransactionOptions.Types.ReadOnly other)\u003c/code\u003e, to create instances.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties such as \u003ccode\u003eConsistencySelectorCase\u003c/code\u003e to manage consistency selection and \u003ccode\u003eReadTime\u003c/code\u003e to specify a timestamp for reading documents.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class TransactionOptions.Types.ReadOnly (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly) \n\n public sealed class TransactionOptions.Types.ReadOnly : IMessage\u003cTransactionOptions.Types.ReadOnly\u003e, IEquatable\u003cTransactionOptions.Types.ReadOnly\u003e, IDeepCloneable\u003cTransactionOptions.Types.ReadOnly\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class TransactionOptions.Types.ReadOnly.\n\nOptions for a transaction that can only be used to read documents. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TransactionOptions.Types.ReadOnly \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types)[ReadOnly](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types)[ReadOnly](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TransactionOptions](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types)[ReadOnly](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.TransactionOptions.Types.ReadOnly), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Firestore.V1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.V1.dll\n\nConstructors\n------------\n\n### ReadOnly()\n\n public ReadOnly()\n\n### ReadOnly(ReadOnly)\n\n public ReadOnly(TransactionOptions.Types.ReadOnly other)\n\nProperties\n----------\n\n### ConsistencySelectorCase\n\n public TransactionOptions.Types.ReadOnly.ConsistencySelectorOneofCase ConsistencySelectorCase { get; }\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\n\nReads documents at the given time.\n\nThis must be a microsecond precision timestamp within the past one\nhour, or if Point-in-Time Recovery is enabled, can additionally be a\nwhole minute timestamp within the past 7 days."]]