public sealed class DirectedReadOptions.Types.ExcludeReplicas : IMessage<DirectedReadOptions.Types.ExcludeReplicas>, IEquatable<DirectedReadOptions.Types.ExcludeReplicas>, IDeepCloneable<DirectedReadOptions.Types.ExcludeReplicas>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class DirectedReadOptions.Types.ExcludeReplicas.
An ExcludeReplicas contains a repeated set of ReplicaSelection that should
be excluded from serving requests.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eDirectedReadOptions.Types.ExcludeReplicas\u003c/code\u003e class is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, which can be found under the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eDirectedReadOptions.Types.ExcludeReplicas\u003c/code\u003e, allows for the exclusion of specific replicas from serving requests via a set of \u003ccode\u003eReplicaSelection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDirectedReadOptions.Types.ExcludeReplicas\u003c/code\u003e implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, enabling advanced functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors, \u003ccode\u003eExcludeReplicas()\u003c/code\u003e, and \u003ccode\u003eExcludeReplicas(DirectedReadOptions.Types.ExcludeReplicas other)\u003c/code\u003e, allowing for the instantiation of empty and pre-populated objects.\u003c/p\u003e\n"],["\u003cp\u003eIt contains one property called \u003ccode\u003eReplicaSelections\u003c/code\u003e, of the type \u003ccode\u003eRepeatedField<DirectedReadOptions.Types.ReplicaSelection>\u003c/code\u003e, which controls which replicas are to be excluded.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class DirectedReadOptions.Types.ExcludeReplicas (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas) \n\n public sealed class DirectedReadOptions.Types.ExcludeReplicas : IMessage\u003cDirectedReadOptions.Types.ExcludeReplicas\u003e, IEquatable\u003cDirectedReadOptions.Types.ExcludeReplicas\u003e, IDeepCloneable\u003cDirectedReadOptions.Types.ExcludeReplicas\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class DirectedReadOptions.Types.ExcludeReplicas.\n\nAn ExcludeReplicas contains a repeated set of ReplicaSelection that should\nbe excluded from serving requests. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DirectedReadOptions.Types.ExcludeReplicas \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DirectedReadOptions](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types)[ExcludeReplicas](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DirectedReadOptions](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types)[ExcludeReplicas](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DirectedReadOptions](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions)[Types](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types)[ExcludeReplicas](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.DirectedReadOptions.Types.ExcludeReplicas), [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.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.V1.dll\n\nConstructors\n------------\n\n### ExcludeReplicas()\n\n public ExcludeReplicas()\n\n### ExcludeReplicas(ExcludeReplicas)\n\n public ExcludeReplicas(DirectedReadOptions.Types.ExcludeReplicas other)\n\nProperties\n----------\n\n### ReplicaSelections\n\n public RepeatedField\u003cDirectedReadOptions.Types.ReplicaSelection\u003e ReplicaSelections { get; }\n\nThe directed read replica selector."]]