Constructor DataObject
DataObject()
Initializes a new instance of DataObject class.
public DataObject()
DataObject(string, object)
Initializes a new instance of DataObject class with the specified data, along with one or more specified data formats. The data format is specified by a string.
public DataObject(string format, object data)
Parameters
format
stringA string that specifies what format to store the data in. See the DataFormats class for a set of pre-defined data formats.
data
objectThe data to store in this data object.
DataObject(object)
Initializes a new instance of DataObject class with the specified data in this data object, automatically converting the data format from the source object type.
public DataObject(object data)
Parameters
data
objectThe data to store in this data object.