Class ObjectValue
Defines values that are composed of a collection of name-value pairs.
Assembly: WMServer.dll
Syntax
public class ObjectValue : CollectionElementValue
Constructors
ObjectValue()
Declaration
ObjectValue(Dictionary<string, ElementValue>)
Declaration
public ObjectValue(Dictionary<string, ElementValue> val)
Parameters
ObjectValue(Dictionary<string, object>)
Declaration
public ObjectValue(Dictionary<string, object> val)
Parameters
ObjectValue(DataRow)
Declaration
public ObjectValue(DataRow row)
Parameters
ObjectValue(JsonElement)
Declaration
public ObjectValue(JsonElement jElem)
Parameters
Properties
Keys
Get the keys of this object as an array of strings.
Declaration
public string[] Keys { get; }
Property Value
Value
Declaration
public Dictionary<string, ElementValue> Value { get; set; }
Property Value
Methods
FromTemplate(ObjectTemplate)
Create a new ObjectValue instance whose keys are defined by the supplied ObjectTemplate
Declaration
public static ObjectValue FromTemplate(ObjectTemplate template)
Parameters
Returns
ToCSV(bool, string?, string)
Convert the object to a CSV string.
Declaration
public override string ToCSV(bool includeHeaders = true, string? stringEnclosure = null, string delimiter = ",")
Parameters
Type |
Name |
Description |
bool |
includeHeaders |
|
string |
stringEnclosure |
|
string |
delimiter |
|
Returns
Overrides