UploadStream
Namespace: Vercel.AI.Operations
public sealed class UploadStreamA stream the provider may take ownership of.
Inheritance: object
Properties
Section titled “Properties”CancelError
Section titled “CancelError”public Exception? CancelError { get; }Reason passed to Cancel(Exception).
Value: Exception
Cancelled
Section titled “Cancelled”public bool Cancelled { get; }True after Cancel(Exception).
Value: bool
Methods
Section titled “Methods”Cancel(Exception)
Section titled “Cancel(Exception)”public void Cancel(Exception error)Releases the stream after a failed upload.
Parameters
| Name | Type | Description |
|---|---|---|
error |
Exception |
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product