Kentico 11 API Reference
Kentico 11 API Reference
Namespaces
CMS.DataEngine Namespaces
CMS.DataEngine
DataExtensions Class
DataExtensions Methods
ToJSON Method
ToJSON Method (DataSet, Boolean)
ToJSON Method (DataTable, Boolean)
ToJSON Method (IEnumerable, String, Boolean)
ToJSON Method (IDataContainer, String, Boolean)
DataExtensions
ToJSON Method (DataSet, Boolean)
Exports DataSet to JSON string.
Namespace:
CMS.DataEngine
Assembly:
CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
Copy
public
static
string
ToJSON
(
this
DataSet
ds
,
bool
includeName
)
Parameters
ds
Type:
System.Data
DataSet
DataSet to export
includeName
Type:
System
Boolean
If true, name of the dataset and names of the tables are included in the result
Return Value
Type:
String
Usage 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
Reference
DataExtensions Class
ToJSON Overload
CMS.DataEngine Namespace
Copyright (c) 2017 Kentico Software
Send comments on this topic to
support@kentico.com