JsonPatchDocument<TModel> 클래스

정의

generic <typename TModel>
 where TModel : classpublic ref class JsonPatchDocument : Microsoft::AspNetCore::JsonPatch::IJsonPatchDocument
[Newtonsoft.Json.JsonConverter(typeof(Microsoft.AspNetCore.JsonPatch.Converters.TypedJsonPatchDocumentConverter))]
public class JsonPatchDocument<TModel> : Microsoft.AspNetCore.JsonPatch.IJsonPatchDocument where TModel : class
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.AspNetCore.JsonPatch.Converters.TypedJsonPatchDocumentConverter))>]
type JsonPatchDocument<'Model (requires 'Model : null)> = class
    interface IJsonPatchDocument
Public Class JsonPatchDocument(Of TModel)
Implements IJsonPatchDocument

형식 매개 변수

TModel
상속
JsonPatchDocument<TModel>
특성
Newtonsoft.Json.JsonConverterAttribute
구현

생성자

JsonPatchDocument<TModel>()
JsonPatchDocument<TModel>(List<Operation<TModel>>, IContractResolver)

속성

ContractResolver
Operations

메서드

Add<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp)

목록 끝에 값 추가

Add<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32)

지정된 위치에서 목록에 값 추가

Add<TProp>(Expression<Func<TModel,TProp>>, TProp)

작업을 추가합니다. 예를 들어 { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

ApplyTo(TModel)

이 JsonPatchDocument 적용

ApplyTo(TModel, Action<JsonPatchError>)

이 JsonPatchDocument 적용

ApplyTo(TModel, IObjectAdapter)

이 JsonPatchDocument 적용

ApplyTo(TModel, IObjectAdapter, Action<JsonPatchError>)

이 JsonPatchDocument 적용

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>)

목록의 위치에서 다른 목록의 끝으로 복사

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>, Int32)

목록의 위치에서 목록의 새 위치로 복사

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,TProp>>)

목록의 위치에서 새 위치로 복사

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>)

목록 끝에 복사

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>, Int32)

속성에서 목록의 위치로 복사

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,TProp>>)

지정된 위치에 있는 값을 대상 위치에 복사합니다. 예를 들어 { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

Move<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>)

목록의 위치에서 다른 목록의 끝으로 이동

Move<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>, Int32)

목록의 위치에서 목록의 다른 위치로 이동

Move<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,TProp>>)

목록의 위치에서 새 위치로 이동

Move<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>)

목록의 끝으로 이동

Move<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>, Int32)

속성에서 목록의 위치로 이동

Move<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,TProp>>)

지정된 위치에서 값을 제거하고 대상 위치에 추가합니다. 예를 들어 { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

Remove<TProp>(Expression<Func<TModel,IList<TProp>>>)

목록 끝에서 값 제거

Remove<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32)

지정된 위치의 목록에서 값 제거

Remove<TProp>(Expression<Func<TModel,TProp>>)

대상 위치에서 값을 제거합니다. 예를 들어 { "op": "remove", "path": "/a/b/c" }

Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp)

목록 끝에 있는 값 바꾸기

Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32)

지정된 위치에 있는 목록의 값 바꾸기

Replace<TProp>(Expression<Func<TModel,TProp>>, TProp)

값을 대체합니다. 예를 들어 { "op": "replace", "path": "/a/b/c", "value": 42 }

Test<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp)

목록 끝에 있는 테스트 값

Test<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32)

지정된 위치에 있는 목록의 테스트 값

Test<TProp>(Expression<Func<TModel,TProp>>, TProp)

테스트 값입니다. 예를 들어 { "op": "test", "path": "/a/b/c", "value": 42 }

명시적 인터페이스 구현

IJsonPatchDocument.GetOperations()

확장 메서드

ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary)

개체에 JSON 패치 작업을 적용하고 의 ModelStateDictionary오류를 기록합니다.

ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary, String)

개체에 JSON 패치 작업을 적용하고 의 ModelStateDictionary오류를 기록합니다.

적용 대상