DataExtensionsToJSON Method (DataSet, Boolean) |
Exports DataSet to JSON string.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public static string ToJSON(
this DataSet ds,
bool includeName
)
Parameters
- ds
- Type: System.DataDataSet
DataSet to export - includeName
- Type: SystemBoolean
If true, name of the dataset and names of the tables are included in the result
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataSet. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also