AIProjectRoutines.CreateOrUpdateAsync 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.
Create or update a routine.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.ProjectsRoutine>> CreateOrUpdateAsync(string name, Azure.AI.Projects.ProjectsRoutineOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : string * Azure.AI.Projects.ProjectsRoutineOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.ProjectsRoutine>>
override this.CreateOrUpdateAsync : string * Azure.AI.Projects.ProjectsRoutineOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.ProjectsRoutine>>
Public Overridable Function CreateOrUpdateAsync (name As String, options As ProjectsRoutineOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of ProjectsRoutine))
Parameters
- name
- String
The unique name of the routine.
- options
- ProjectsRoutineOptions
The options for routine.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name or options is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.