PatchOperation.Replace<T>(String, T) Method

Definition

Create PatchOperation<T> to replace a value.

public static Microsoft.Azure.Cosmos.PatchOperation Replace<T> (string path, T value);
static member Replace : string * 'T -> Microsoft.Azure.Cosmos.PatchOperation
Public Shared Function Replace(Of T) (path As String, value As T) As PatchOperation

Type Parameters

T

Type of value

Parameters

path
String

Target location reference.

value
T

The new value.

Returns

PatchOperation instance for specified input.

Applies to