ProjectProperty.CreateJsonPatchDocument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.