C# 클래스 Microsoft.AspNetCore.JsonPatch.JsonPatchDocument

상속: IJsonPatchDocument
파일 보기 프로젝트 열기: aspnet/JsonPatch 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IJsonPatchDocument IList

공개 메소드들

메소드 설명
Add ( string path, object value ) : JsonPatchDocument

Add operation. Will result in, for example, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

ApplyTo ( object objectToApplyTo ) : void

Apply this JsonPatchDocument

ApplyTo ( object objectToApplyTo, Action logErrorAction ) : void

Apply this JsonPatchDocument

ApplyTo ( object objectToApplyTo, IObjectAdapter adapter ) : void

Apply this JsonPatchDocument

Copy ( string from, string path ) : JsonPatchDocument

Copy the value at specified location to the target location. Willr esult in, for example: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

JsonPatchDocument ( ) : System
JsonPatchDocument ( List operations, IContractResolver contractResolver ) : System
Move ( string from, string path ) : JsonPatchDocument

Removes value at specified location and add it to the target location. Will result in, for example: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

Remove ( string path ) : JsonPatchDocument

Remove value at target location. Will result in, for example, { "op": "remove", "path": "/a/b/c" }

Replace ( string path, object value ) : JsonPatchDocument

Replace value. Will result in, for example, { "op": "replace", "path": "/a/b/c", "value": 42 }

비공개 메소드들

메소드 설명
IJsonPatchDocument ( ) : IList

메소드 상세

Add() 공개 메소드

Add operation. Will result in, for example, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }
public Add ( string path, object value ) : JsonPatchDocument
path string target location
value object value
리턴 JsonPatchDocument

ApplyTo() 공개 메소드

Apply this JsonPatchDocument
public ApplyTo ( object objectToApplyTo ) : void
objectToApplyTo object Object to apply the JsonPatchDocument to
리턴 void

ApplyTo() 공개 메소드

Apply this JsonPatchDocument
public ApplyTo ( object objectToApplyTo, Action logErrorAction ) : void
objectToApplyTo object Object to apply the JsonPatchDocument to
logErrorAction Action Action to log errors
리턴 void

ApplyTo() 공개 메소드

Apply this JsonPatchDocument
public ApplyTo ( object objectToApplyTo, IObjectAdapter adapter ) : void
objectToApplyTo object Object to apply the JsonPatchDocument to
adapter IObjectAdapter IObjectAdapter instance to use when applying
리턴 void

Copy() 공개 메소드

Copy the value at specified location to the target location. Willr esult in, for example: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }
public Copy ( string from, string path ) : JsonPatchDocument
from string source location
path string target location
리턴 JsonPatchDocument

JsonPatchDocument() 공개 메소드

public JsonPatchDocument ( ) : System
리턴 System

JsonPatchDocument() 공개 메소드

public JsonPatchDocument ( List operations, IContractResolver contractResolver ) : System
operations List
contractResolver IContractResolver
리턴 System

Move() 공개 메소드

Removes value at specified location and add it to the target location. Will result in, for example: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }
public Move ( string from, string path ) : JsonPatchDocument
from string source location
path string target location
리턴 JsonPatchDocument

Remove() 공개 메소드

Remove value at target location. Will result in, for example, { "op": "remove", "path": "/a/b/c" }
public Remove ( string path ) : JsonPatchDocument
path string target location
리턴 JsonPatchDocument

Replace() 공개 메소드

Replace value. Will result in, for example, { "op": "replace", "path": "/a/b/c", "value": 42 }
public Replace ( string path, object value ) : JsonPatchDocument
path string target location
value object value
리턴 JsonPatchDocument