AIProjectRoutines.Disable(String, CancellationToken) Method

Definition

Disable a routine.

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

Parameters

name
String

The unique name of the routine.

cancellationToken
CancellationToken

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

Returns

Exceptions

name is null.

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

Service returned a non-success status code.

Applies to