public sealed class CancelOperationRequest : IMessage<CancelOperationRequest>, IEquatable<CancelOperationRequest>, IDeepCloneable<CancelOperationRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google.LongRunning class CancelOperationRequest.
The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eCancelOperationRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.LongRunning\u003c/code\u003e namespace, detailing its structure and usage.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCancelOperationRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eOperations.CancelOperation\u003c/code\u003e function, allowing users to cancel a long-running operation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCancelOperationRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class features a \u003ccode\u003eName\u003c/code\u003e property, a string that specifies the resource name of the operation to be cancelled.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the documentation are available, ranging from version 2.2.0 to the latest version, 3.3.0.\u003c/p\u003e\n"]]],[],null,["# Google.LongRunning - Class CancelOperationRequest (3.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.3.0 (latest)](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.CancelOperationRequest)\n- [3.2.0](/dotnet/docs/reference/Google.LongRunning/3.2.0/Google.LongRunning.CancelOperationRequest)\n- [3.1.0](/dotnet/docs/reference/Google.LongRunning/3.1.0/Google.LongRunning.CancelOperationRequest)\n- [3.0.0](/dotnet/docs/reference/Google.LongRunning/3.0.0/Google.LongRunning.CancelOperationRequest)\n- [2.3.0](/dotnet/docs/reference/Google.LongRunning/2.3.0/Google.LongRunning.CancelOperationRequest)\n- [2.2.0](/dotnet/docs/reference/Google.LongRunning/2.2.0/Google.LongRunning.CancelOperationRequest) \n\n public sealed class CancelOperationRequest : IMessage\u003cCancelOperationRequest\u003e, IEquatable\u003cCancelOperationRequest\u003e, IDeepCloneable\u003cCancelOperationRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google.LongRunning class CancelOperationRequest.\n\nThe request message for \\[Operations.CancelOperation\\]\\[google.longrunning.Operations.CancelOperation\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CancelOperationRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CancelOperationRequest](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.CancelOperationRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CancelOperationRequest](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.CancelOperationRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CancelOperationRequest](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.CancelOperationRequest), [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.LongRunning](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning)\n\nAssembly\n--------\n\nGoogle.LongRunning.dll\n\nConstructors\n------------\n\n### CancelOperationRequest()\n\n public CancelOperationRequest()\n\n### CancelOperationRequest(CancelOperationRequest)\n\n public CancelOperationRequest(CancelOperationRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the operation resource to be cancelled."]]