DiscoveryModelFactory.RunOperationStatus 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.
Provides status details for long running operations.
public static Azure.AI.Discovery.RunOperationStatus RunOperationStatus(string id = default, Azure.AI.Discovery.OperationState status = default, Azure.ResponseError error = default, Azure.AI.Discovery.RunResult result = default);
static member RunOperationStatus : string * Azure.AI.Discovery.OperationState * Azure.ResponseError * Azure.AI.Discovery.RunResult -> Azure.AI.Discovery.RunOperationStatus
Public Shared Function RunOperationStatus (Optional id As String = Nothing, Optional status As OperationState = Nothing, Optional error As ResponseError = Nothing, Optional result As RunResult = Nothing) As RunOperationStatus
Parameters
- id
- String
The unique ID of the operation.
- status
- OperationState
The status of the operation.
- error
- ResponseError
Error object that describes the error when status is "Failed".
- result
- RunResult
The result of the operation.
Returns
A new RunOperationStatus instance for mocking.