CanConvert

HRESULT CanConvert(
DBTYPE dbtFrom, 
DBTYPE dbtTo);

Parameters

dbtFrom

Type to convert from.

dbtTo

Type to convert to.

Return Code

S_OK

Returned if the types can be converted.

S_FALSE
Returned if the types cannot be converted.

E_NOINTERFACE

Returned if IConvertType is not available.

E_FAIL

 Returned if the object is not attached.

Comments

Uses IConvertType::CanConvert to determine whether one type can be converted to another by the provider.