Throws the exception fromprogressif it represents a failure with an exception.
The thrown exception will contain a more useful stack trace than justExceptionwhere this is available.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eUploadProgress\u003c/code\u003e static class within the \u003ccode\u003eGoogle.Apis.Upload\u003c/code\u003e namespace, found in the Google.Apis.dll assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides extension methods for \u003ccode\u003eIUploadProgress\u003c/code\u003e, and its latest version is 1.69.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUploadProgress\u003c/code\u003e inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has one primary method, \u003ccode\u003eThrowOnFailure\u003c/code\u003e, which throws an exception if the provided \u003ccode\u003eIUploadProgress\u003c/code\u003e instance indicates a failure, offering a more detailed stack trace.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003eThrowOnFailure\u003c/code\u003e requires a parameter \u003ccode\u003eprogress\u003c/code\u003e, which is of type IUploadProgress, representing the upload progress to check for failure.\u003c/p\u003e\n"]]],[],null,["# Class UploadProgress (1.69.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.69.0 (latest)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.UploadProgress)\n- [1.68.0](/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Upload.UploadProgress)\n- [1.60.0](/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Upload.UploadProgress)\n- [1.59.0](/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Upload.UploadProgress)\n- [1.55.0](/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Upload.UploadProgress)\n- [1.50.0](/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Upload.UploadProgress) \n\n public static class UploadProgress\n\nExtension methods for [IUploadProgress](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UploadProgress \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Apis.Upload](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload)\n\nAssembly\n--------\n\nGoogle.Apis.dll\n\nMethods\n-------\n\n### ThrowOnFailure(IUploadProgress)\n\n public static void ThrowOnFailure(this IUploadProgress progress)\n\nThrows the exception from `progress` if it represents a failure with an exception.\nThe thrown exception will contain a more useful stack trace than just [Exception](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Upload.IUploadProgress#Google_Apis_Upload_IUploadProgress_Exception)\nwhere this is available."]]