AIProjectRoutines.DeleteRoutine(String, CancellationToken) Method

Definition

Delete a routine.

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

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