Table of Contents

Method GetDataPresent

Namespace
Innova.Prism.Library.Mail
Assembly
Innova.Prism.Library.dll

GetDataPresent(Type)

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

public bool GetDataPresent(Type format)

Parameters

format Type

A Type representing the format for which to check. See DataFormats for predefined formats.

Returns

bool

true if data stored in this instance is associated with, or can be converted to, the specified format; otherwise, false.

GetDataPresent(string)

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

public bool GetDataPresent(string format)

Parameters

format string

The format for which to check. See DataFormats for predefined formats.

Returns

bool

true if data stored in this instance is associated with, or can be converted to, the specified format; otherwise false.

GetDataPresent(string, bool)

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

public bool GetDataPresent(string format, bool autoConvert)

Parameters

format string

The format for which to check. See DataFormats for predefined formats.

autoConvert bool

true to determine whether data stored in this instance can be converted to the specified format; false to check whether the data is in the specified format.

Returns

bool

true if the data is in, or can be converted to, the specified format; otherwise, false.