DataObject
Wisej.Web.DataObject
Last updated
Was this helpful?
Wisej.Web.DataObject
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Implements a basic data transfer mechanism.
Initializes a new instance of the class.
Initializes a new instance of the class and adds the specified object to it.
data
The data to store.
Initializes a new instance of the class and adds the specified object in the specified format.
format
data
The data to store.
format
data
The data to store.
format
Retrieves an audio stream from the data object.
Returns the data associated with the specified class type format.
format
Returns the data associated with the specified data format.
format
Returns the data associated with the specified data format, using an automated conversion parameter to determine whether to convert the data to the format.
format
autoConvert
true to the convert data to the specified format; otherwise, false.
format
Returns the data associated with the specified class type format.
format
format
autoConvert
Returns the list of file types from the data object.
autoConvert
Retrieves an image from the data object.
format
audioBytes
Throws:
audioStream
Throws:
data
The data to store.
format
data
The data to store.
format
data
The data to store.
format
autoConvert
true to allow the data to be converted to another format; otherwise, false.
data
The data to store.
url
The url to the file to download.
fileName
The name of the file to download from the url.
filePaths
Throws:
filePaths
Throws:
image
Throws:
textData
The text to add to the data object.
Throws:
textData
The text to add to the data object.
format
Throws:
Provides a format-independent mechanism for transferring data.
The format of the specified data. See for predefined formats.
Initializes a new instance of the class and adds the specified object in the specified format.
A representing the format of the data.
Indicates whether the data object contains data in the format.
Returns: . true if the data object contains audio data; otherwise, false.
Indicates whether the data object contains data that is in the format or can be converted to that format.
Returns: . true if the data object contains a file drop list; otherwise, false.
Indicates whether the data object contains data that is in the format or can be converted to that format.
Returns: . true if the data object contains image data; otherwise, false.
Indicates whether the data object contains data in the format.
Returns: . true if the data object contains text data; otherwise, false.
Indicates whether the data object contains text data in the format indicated by the specified value.
One of the values.
Returns: . true if the data object contains text data in the specified format; otherwise, false.
Returns: . A containing audio data or null if the data object does not contain any data in the format.
A representing the format of the data to retrieve.
Returns: . The data associated with the specified format, or null.
The format of the data to retrieve. See for predefined formats.
Returns: . The data associated with the specified format, or null.
The format of the data to retrieve. See for predefined formats.
Returns: . The data associated with the specified format, or null.
Determines whether data stored in this is associated with, or can be converted to, the specified format.
A representing the format to check for.
Returns: . true if data stored in this is associated with, or can be converted to, the specified format; otherwise, false.
A representing the format of the data to retrieve.
Returns: . The data associated with the specified format, or null.
Determines whether this contains data in the specified format or, optionally, contains data that can be converted to the specified format.
The format to check for. See for predefined formats.
true to determine whether data stored in this can be converted to the specified format; false to check whether the data is in the specified format.
Returns: . true if the data is in, or can be converted to, the specified format; otherwise, false.
Returns: . A string array containing the file types in the data object.
Returns the of files uploaded by the client in a drag & drop operation.
Returns: . A string array containing the file types in the data object.
Returns a list of all formats that data stored in this is associated with or can be converted to.
Returns: . An array of type , containing a list of all formats that are supported by the data stored in this object.
Returns a list of all formats that data stored in this is associated with or can be converted to, using an automatic conversion parameter to determine whether to retrieve only native data formats or all formats that the data can be converted to.
true to retrieve all formats that data stored in this is associated with, or can be converted to; false to retrieve only native data formats.
Returns: . An array of type , containing a list of all formats that are supported by the data stored in this object.
Returns: . An representing the image data in the data object or null if the data object does not contain any data that is in the format or can be converted to that format.
Retrieves text data from the data object in the format.
Returns: . The text data in the data object or if the data object does not contain data in the format.
Retrieves text data from the data object in the format indicated by the specified value.
One of the values.
Returns: . The text data in the data object or if the data object does not contain data in the specified format.
Adds a array to the data object in the format after converting it to a .
A array containing the audio data.
audioBytes is null.
Adds a to the data object in the format.
A containing the audio data.
audioStream is null.
Adds the specified object to the using the object type as the data format.
Adds the specified object to the using the specified type as the format.
A representing the format associated with the data.
Adds the specified object to the using the specified format.
The format associated with the data. See for predefined formats.
Adds the specified object to the using the specified format and indicating whether the data can be converted to another format.
The format associated with the data. See for predefined formats.
Adds a url using format. The specified url is parsed to compose the DownloadURL as: "mime-type:file-name:url".
Adds a collection of file names to the data object in the format.
A containing the file names.
filePaths is null.
Adds a collection of file names to the data object in the format.
A containing the file names.
filePaths is null.
Adds an to the data object in the format.
The to add to the data object.
image is null.
Adds text data to the data object in the format.
textData is null or .
Adds text data to the data object in the format indicated by the specified value.
One of the values.
textData is null or .