IObjectAdapter.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.
Using the "remove" operation the value at the target location is removed.
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.
See RFC 6902 https://tools.ietf.org/html/rfc6902#page-6
public:
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
Public Sub Remove (operation As Operation, objectToApplyTo As Object)
Parameters
- operation
- Operation
The remove operation.
- objectToApplyTo
- Object
Object to apply the operation to.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for