JsonPatchDocument<TModel>.Remove Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Remove<TProp>(Expression<Func<TModel,IList<TProp>>>) |
Odebrání hodnoty z konce seznamu |
| Remove<TProp>(Expression<Func<TModel,TProp>>) |
Odeberte hodnotu v cílovém umístění. Výsledkem bude například { "op": "remove", "path": "/a/b/c" } |
| Remove<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32) |
Odebrání hodnoty ze seznamu na dané pozici |
Remove<TProp>(Expression<Func<TModel,IList<TProp>>>)
Odebrání hodnoty z konce seznamu
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Remove(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Remove<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path);
member this.Remove : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Remove(Of TProp) (path As Expression(Of Func(Of TModel, IList(Of TProp)))) As JsonPatchDocument(Of TModel)
Parametry typu
- TProp
typ hodnoty
Parametry
- path
- Expression<Func<TModel,IList<TProp>>>
cílové umístění
Návraty
Pro JsonPatchDocument<TModel> řetězení.
Platí pro
Remove<TProp>(Expression<Func<TModel,TProp>>)
Odeberte hodnotu v cílovém umístění. Výsledkem bude například { "op": "remove", "path": "/a/b/c" }
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Remove(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Remove<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> path);
member this.Remove : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Remove(Of TProp) (path As Expression(Of Func(Of TModel, TProp))) As JsonPatchDocument(Of TModel)
Parametry typu
- TProp
Parametry
- path
- Expression<Func<TModel,TProp>>
cílové umístění
Návraty
Pro JsonPatchDocument<TModel> řetězení.
Platí pro
Remove<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32)
Odebrání hodnoty ze seznamu na dané pozici
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Remove(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, int position);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Remove<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, int position);
member this.Remove : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * int -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Remove(Of TProp) (path As Expression(Of Func(Of TModel, IList(Of TProp))), position As Integer) As JsonPatchDocument(Of TModel)
Parametry typu
- TProp
typ hodnoty
Parametry
- path
- Expression<Func<TModel,IList<TProp>>>
cílové umístění
- position
- Int32
position
Návraty
Pro JsonPatchDocument<TModel> řetězení.