IDataObject.getDataPresent

Overview | Methods | This Package | All Packages

IDataObject.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 it is in the correct format.

See Also   DataObject, getData