Compartilhar via


OperationResult.Failed(OperationError[]) Method

Definition

Creates an OperationResult indicating a failed operation, with a list of errors if applicable.

public static Microsoft.Agents.A365.Runtime.OperationResult Failed(params Microsoft.Agents.A365.Runtime.OperationError[] errors);
static member Failed : Microsoft.Agents.A365.Runtime.OperationError[] -> Microsoft.Agents.A365.Runtime.OperationResult
Public Shared Function Failed (ParamArray errors As OperationError()) As OperationResult

Parameters

errors
OperationError[]

An optional array of OperationError which caused the operation to fail.

Returns

An OperationResult indicating a failed operation, with a list of errors if applicable.

Applies to