DataObject.getDataPresent

Overview | Methods | This Package | All Packages

DataObject.getDataPresent

Determines whether a specific data format is stored in the data object.

Syntax

public boolean getDataPresent( Class format )

public boolean getDataPresent( String format )

Parameters

format

A String object or class that represents the format of the data to check for.

Return Value

Returns true if there is data stored in the Data object of the type specified in format; otherwise, returns false.

Remarks

Use the getDataPresent method to determine the type of data that is currently stored in the Data object. You can use this method before retrieving data from the Data object to ensure that the data is in the correct format.

See Also   IDataObject, getData