JsonPatchDocument<TModel>.Replace Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
Replace<TProp>(Expression<Func<TModel,TProp>>, TProp) |
Ganti nilai. Akan menghasilkan, misalnya, { "op": "replace", "path": "/a/b/c", "value": 42 } |
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp) |
Mengganti nilai di akhir daftar |
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32) |
Ganti nilai dalam daftar pada posisi tertentu |
Replace<TProp>(Expression<Func<TModel,TProp>>, TProp)
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
Ganti nilai. Akan menghasilkan, misalnya, { "op": "replace", "path": "/a/b/c", "value": 42 }
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Replace(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ path, TProp value);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Replace<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> path, TProp value);
member this.Replace : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> * 'Prop -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Replace(Of TProp) (path As Expression(Of Func(Of TModel, TProp)), value As TProp) As JsonPatchDocument(Of TModel)
Jenis parameter
- TProp
Parameter
- path
- Expression<Func<TModel,TProp>>
lokasi target
- value
- TProp
nilai
Mengembalikan
Untuk JsonPatchDocument<TModel> penautan.
Berlaku untuk
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp)
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
Mengganti nilai di akhir daftar
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Replace(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, TProp value);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Replace<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, TProp value);
member this.Replace : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * 'Prop -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Replace(Of TProp) (path As Expression(Of Func(Of TModel, IList(Of TProp))), value As TProp) As JsonPatchDocument(Of TModel)
Jenis parameter
- TProp
jenis nilai
Parameter
- path
- Expression<Func<TModel,IList<TProp>>>
lokasi target
- value
- TProp
nilai
Mengembalikan
Untuk JsonPatchDocument<TModel> penautan.
Berlaku untuk
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32)
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
- Sumber:
- JsonPatchDocumentOfT.cs
Ganti nilai dalam daftar pada posisi tertentu
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Replace(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, TProp value, int position);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Replace<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, TProp value, int position);
member this.Replace : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * 'Prop * int -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Replace(Of TProp) (path As Expression(Of Func(Of TModel, IList(Of TProp))), value As TProp, position As Integer) As JsonPatchDocument(Of TModel)
Jenis parameter
- TProp
jenis nilai
Parameter
- path
- Expression<Func<TModel,IList<TProp>>>
lokasi target
- value
- TProp
nilai
- position
- Int32
position
Mengembalikan
Untuk JsonPatchDocument<TModel> penautan.