JsonSerializerAdd Method (String, Boolean, Boolean) |
Add a boolean property to the object converting the bool value to javascript true/false keywords
or 1/0 integers depending on the value of asOneOrZero.
The default is true/false.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public void Add(
string propertyName,
bool value,
bool asOneOrZero = false
)
Public Sub Add (
propertyName As String,
value As Boolean,
Optional asOneOrZero As Boolean = false
)
Parameters
- propertyName
- Type: SystemString
The name of the property. - value
- Type: SystemBoolean
The value of the property. - asOneOrZero (Optional)
- Type: SystemBoolean
When true the value is expressed as 1/0, else true/false.
See Also