OpenTelemetryHostedFileClient.GetFileInfoAsync Methode

Definitie

Hiermee haalt u metagegevens over een bestand op.

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

Parameters

fileId
String

De id van het bestand.

options
HostedFileClientOptions

Opties voor het configureren van de aanvraag.

cancellationToken
CancellationToken

De CancellationToken te controleren op annuleringsaanvragen. De standaardwaarde is None.

Retouren

Informatie over het bestand of null indien niet gevonden.

Van toepassing op