LoggingHostedFileClient.DeleteAsync Metod

Definition

Tar bort en fil från AI-tjänsten.

public override System.Threading.Tasks.Task<bool> DeleteAsync(string fileId, Microsoft.Extensions.AI.HostedFileClientOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
override this.DeleteAsync : string * Microsoft.Extensions.AI.HostedFileClientOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overrides Function DeleteAsync (fileId As String, Optional options As HostedFileClientOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parametrar

fileId
String

ID:t för filen som ska tas bort.

options
HostedFileClientOptions

Alternativ för att konfigurera begäran.

cancellationToken
CancellationToken

Övervaka CancellationToken för annulleringsbegäranden. Standardvärdet är None.

Returer

true om filen har tagits bort. false om filen inte hittades.

Gäller för