次の方法で共有


OperationResult Class

Definition

Represents the result of an operation.

public class OperationResult
type OperationResult = class
Public Class OperationResult
Inheritance
OperationResult

Constructors

Name Description
OperationResult()

Properties

Name Description
Errors

Gets an IEnumerable<T> of OperationError instances indicating errors that occurred during the operation.

Succeeded

Gets a flag indicating whether the operation succeeded.

Success

Returns an OperationResult indicating a successful operation.

Methods

Name Description
Failed(OperationError[])

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

ToString()

Converts the value of the current OperationResult object to its equivalent string representation.

Applies to