public sealed class ServiceLockInfo : IMessage<ServiceLockInfo>, IEquatable<ServiceLockInfo>, IDeepCloneable<ServiceLockInfo>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class ServiceLockInfo.
ServiceLockInfo represents the details of a lock taken by the service on a
Backup resource.
[[["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\u003eServiceLockInfo\u003c/code\u003e class in the Backup and DR Service v1 API is version 2.1.0, with previous versions including 2.0.0, 1.2.0, 1.1.0, and 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceLockInfo\u003c/code\u003e represents the details of a lock taken by the service on a Backup resource, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class contains a constructor which allow an empty instantiation or one with a \u003ccode\u003eServiceLockInfo\u003c/code\u003e object as parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceLockInfo\u003c/code\u003e class has a property called \u003ccode\u003eOperation\u003c/code\u003e, which is a string representing the name of the operation that created the lock, and it is released once the operation is complete.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class ServiceLockInfo (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ServiceLockInfo)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.ServiceLockInfo)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.ServiceLockInfo)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.ServiceLockInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.ServiceLockInfo)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.ServiceLockInfo) \n\n public sealed class ServiceLockInfo : IMessage\u003cServiceLockInfo\u003e, IEquatable\u003cServiceLockInfo\u003e, IDeepCloneable\u003cServiceLockInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class ServiceLockInfo.\n\nServiceLockInfo represents the details of a lock taken by the service on a\nBackup resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceLockInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceLockInfo](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ServiceLockInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceLockInfo](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ServiceLockInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceLockInfo](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ServiceLockInfo), [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.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### ServiceLockInfo()\n\n public ServiceLockInfo()\n\n### ServiceLockInfo(ServiceLockInfo)\n\n public ServiceLockInfo(ServiceLockInfo other)\n\nProperties\n----------\n\n### Operation\n\n public string Operation { get; set; }\n\nOutput only. The name of the operation that created this lock.\nThe lock will automatically be released when the operation completes."]]