Language

AIProjectModels.UploadModelAsync Method

Definition

Overloads

Name Description
UploadModelAsync(String, String, String)

Upload the model directory.

UploadModelAsync(String, String, String, CancellationToken)

Upload the model directory.

UploadModelAsync(String, String, String)

Source:
AIProjectModels.cs

Upload the model directory.

public virtual System.Threading.Tasks.Task<Uri> UploadModelAsync(string path, string name, string version);
abstract member UploadModelAsync : string * string * string -> System.Threading.Tasks.Task<Uri>
override this.UploadModelAsync : string * string * string -> System.Threading.Tasks.Task<Uri>
Public Overridable Function UploadModelAsync (path As String, name As String, version As String) As Task(Of Uri)

Parameters

path
String

The path to the directory, containing model.

name
String

Model name.

version
String

Model version.

Returns

Uploaded model URI

Exceptions

name, version or is null.

name, version or path is an empty string, and was expected to be non-empty.

Applies to

UploadModelAsync(String, String, String, CancellationToken)

Source:
AIProjectModels.cs

Upload the model directory.

public virtual System.Threading.Tasks.Task<Uri> UploadModelAsync(string path, string name, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadModelAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
override this.UploadModelAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Overridable Function UploadModelAsync (path As String, name As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Uri)

Parameters

path
String

The path to the directory, containing model.

name
String

Model name.

version
String

Model version.

cancellationToken
CancellationToken

Cancelation token

Returns

Uploaded model URI

Exceptions

name, version or is null.

name, version or path is an empty string, and was expected to be non-empty.

Applies to