AgentFileStore.WriteAsync(String, String, CancellationToken) Method

Definition

Writes content to a file, creating or overwriting it.

public abstract System.Threading.Tasks.Task WriteAsync(string path, string content, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function WriteAsync (path As String, content As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

path
String

The relative path of the file to write.

content
String

The content to write to the file.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

A task representing the asynchronous operation.

Applies to