Dela via


PatchOperation Class

Definition

Details of Patch operation that is to be applied to the referred Cosmos item.

public abstract class PatchOperation
type PatchOperation = class
Public MustInherit Class PatchOperation
Inheritance
PatchOperation
Derived

Constructors

PatchOperation()

Properties

From

Source location reference (used in case of move)

OperationType

Patch operation type.

Path

Target location reference.

Methods

Add<T>(String, T)

Create PatchOperation<T> to add a value.

Increment(String, Double)

Create PatchOperation to Increment a value.

Increment(String, Int64)

Create PatchOperation to Increment a value.

Move(String, String)

Create PatchOperation to move an object/value.

Remove(String)

Create PatchOperation to remove a value.

Replace<T>(String, T)

Create PatchOperation<T> to replace a value.

Set<T>(String, T)

Create PatchOperation<T> to set a value.

TrySerializeValueParameter(CosmosSerializer, Stream)

Serializes the value parameter, if specified for the PatchOperation.

Applies to