Edit

ProjectProperty.CreateJsonPatchDocument Method

Definition

Creates a Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument based on a collection of project properties.

public static Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument CreateJsonPatchDocument(System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.Core.WebApi.ProjectProperty> projectProperties);
static member CreateJsonPatchDocument : seq<Microsoft.TeamFoundation.Core.WebApi.ProjectProperty> -> Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument
Public Shared Function CreateJsonPatchDocument (projectProperties As IEnumerable(Of ProjectProperty)) As JsonPatchDocument

Parameters

projectProperties
IEnumerable<ProjectProperty>

The project properties

Returns

Microsoft.VisualStudio.Services.WebApi.Patch.Json.JsonPatchDocument

The JSON Patch document

Remarks

One JSON Patch operation is created and added to the document for each project property. If the property value is null, the operation verb is Remove. Otherwise, Add.

Applies to