BatchOperationResult<T extends BaseDocument> class

Class representing a BatchOperation's result.

Constructors

BatchOperationResult(BatchOperation operation, int statusCode, int? retryAfterMs, T? item)
BatchOperationResult.noItem(BatchOperation operation, int statusCode, int? retryAfterMs)

Properties

hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
true if the operation succeeded, false otherwise.
no setter
item → T?
The document resulting from the BatchOperation, if applicable. For BatchOperationDelete, it is always null.
final
operation BatchOperation
The BatchOperation associated to this result.
final
retryAfterMs int?
When statusCode is HttpStatusCode.tooManyRequests, contains the value in the retryAfterMilliseconds field returned by Cosmos DB.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The BatchOperation's status code; see constants in HttpStatusCode.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited