AIProjectRoutines.DeleteRoutineAsync(String, CancellationToken) 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.
Delete a routine.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> DeleteRoutineAsync(string routineName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteRoutineAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.DeleteRoutineAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function DeleteRoutineAsync (routineName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.