Click or drag to resize

JsonAdminCommentPreserverPreserveComments Method (IEnumerableJsonAdminComment, JObject, String)

Preserves the MFAdmin-compatible comments in the source JSON structure under a single property in the target structure.

Namespace:  MFiles.VAF.Configuration.JsonMapping
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public void PreserveComments(
	IEnumerable<JsonAdminComment> comments,
	JObject target,
	string commentsPath
)

Parameters

comments
Type: System.Collections.GenericIEnumerableJsonAdminComment
The comments to preserve.
target
Type: JObject
The target JSON structure.
commentsPath
Type: SystemString
The path to where the comments should stored in the JSON structure.
See Also