TaskOutputStorage.SaveTextAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves the specified text to persistent storage, without requiring you to create a local file.
public System.Threading.Tasks.Task SaveTextAsync (Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind kind, string text, string destinationRelativePath, System.Threading.CancellationToken cancellationToken = default);
member this.SaveTextAsync : Microsoft.Azure.Batch.Conventions.Files.TaskOutputKind * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveTextAsync (kind As TaskOutputKind, text As String, destinationRelativePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- kind
- TaskOutputKind
A TaskOutputKind representing the category under which to store this data, for example TaskOutput or TaskLog.
- text
- String
The text to save.
- destinationRelativePath
- String
The blob name under which to save the text. This may include a relative component, such as "records/widget42.json".
- cancellationToken
- CancellationToken
A CancellationToken for controlling the lifetime of the asynchronous operation.
Returns
A Task that represents the asynchronous operation.
Exceptions
The kind
, text
, or destinationRelativePath
argument is null.
The destinationRelativePath
argument is empty.