Skip to main content
Version: 4.2

IDataObject

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Provides a format-independent mechanism for transferring data.

public interface IDataObject

The operations exposed by this type include GetData, GetData, GetData.

Methods​

Instance member GetData(format, autoConvert)​

Retrieves the data associated with the specified data format, using autoConvert to determine whether to convert the data to the format.

ParameterTypeDescription
formatStringThe format passed to the operation.
autoConvertBooleanThe auto convert passed to the operation.

Returns: Object.

Instance member GetData(format)​

Retrieves the data associated with the specified data format.

ParameterTypeDescription
formatStringThe format passed to the operation.

Returns: Object.

Instance member GetData(format)​

Retrieves the data associated with the specified class type format.

ParameterTypeDescription
formatTypeThe format passed to the operation.

Returns: Object.

Instance member GetDataPresent(format, autoConvert)​

Determines whether data stored in this instance is associated with the specified format, using autoConvert to determine whether to convert the data to the format.

ParameterTypeDescription
formatStringThe format passed to the operation.
autoConvertBooleanThe auto convert passed to the operation.

Returns: Boolean.

Instance member GetDataPresent(format)​

Determines whether data stored in this instance is associated with, or can be converted to, the specified format.

ParameterTypeDescription
formatStringThe format passed to the operation.

Returns: Boolean.

Instance member GetDataPresent(format)​

Determines whether data stored in this instance is associated with, or can be converted to, the specified format.

ParameterTypeDescription
formatTypeThe format passed to the operation.

Returns: Boolean.

Instance member GetFormats(autoConvert)​

Gets a list of all formats that data stored in this instance is associated with or can be converted to, using autoConvert to determine whether to retrieve all formats that the data can be converted to or' only native data formats.

ParameterTypeDescription
autoConvertBooleanThe auto convert passed to the operation.

Returns: String[].

Instance member GetFormats()​

Gets a list of all formats that data stored in this instance is associated with or can be converted to.

Returns: String[].

Instance member SetData(format, autoConvert, data)​

Stores the specified data and its associated format in this instance, using autoConvert to specify whether the data can be converted to another format.

ParameterTypeDescription
formatStringThe format passed to the operation.
autoConvertBooleanThe auto convert passed to the operation.
dataObjectThe data passed to the operation.

Instance member SetData(format, data)​

Stores the specified data and its associated format in this instance.

ParameterTypeDescription
formatStringThe format passed to the operation.
dataObjectThe data passed to the operation.

Instance member SetData(format, data)​

Stores the specified data and its associated class type in this instance.

ParameterTypeDescription
formatTypeThe format passed to the operation.
dataObjectThe data passed to the operation.

Instance member SetData(data)​

Stores the specified data in this instance, using the class of the data for the format.

ParameterTypeDescription
dataObjectThe data passed to the operation.

Implemented By​

NameDescription
DataObjectImplements a basic data transfer mechanism.