AIProjectRoutines.EnableRoutine(String, CancellationToken) Method

Definition

Enable a routine.

public virtual System.ClientModel.ClientResult<Azure.AI.Projects.ProjectsRoutine> EnableRoutine(string routineName, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableRoutine : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.ProjectsRoutine>
override this.EnableRoutine : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.ProjectsRoutine>
Public Overridable Function EnableRoutine (routineName As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of ProjectsRoutine)

Parameters

routineName
String

The unique name of the routine.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

routineName is null.

routineName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to