ObjectAdapter.Remove(Operation, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The "remove" operation removes the value at the target location.
The target location MUST exist for the operation to be successful.
For example:
{ "op": "remove", "path": "/a/b/c" }
If removing an element from an array, any elements above the specified index are shifted one position to the left.
public:
virtual void Remove(Microsoft::AspNetCore::JsonPatch::Operations::Operation ^ operation, System::Object ^ objectToApplyTo);
public void Remove (Microsoft.AspNetCore.JsonPatch.Operations.Operation operation, object objectToApplyTo);
abstract member Remove : Microsoft.AspNetCore.JsonPatch.Operations.Operation * obj -> unit
override this.Remove : Microsoft.AspNetCore.JsonPatch.Operations.Operation * obj -> unit
Public Sub Remove (operation As Operation, objectToApplyTo As Object)
Parameters
- operation
- Operation
The remove operation.
- objectToApplyTo
- Object
Object to apply the operation to.