Share via


TypeCoercionProvider.CanPotentiallyCoerceTo(FormulaType, FormulaType) Method

Definition

Can convert value to source format to target or not.

public static bool CanPotentiallyCoerceTo(this Microsoft.PowerFx.Types.FormulaType source, Microsoft.PowerFx.Types.FormulaType target);
static member CanPotentiallyCoerceTo : Microsoft.PowerFx.Types.FormulaType * Microsoft.PowerFx.Types.FormulaType -> bool
<Extension()>
Public Function CanPotentiallyCoerceTo (source As FormulaType, target As FormulaType) As Boolean

Parameters

source
FormulaType

Source type format.

target
FormulaType

Target type format.

Returns

True/False based on whether function can convert from source type to target type.

Applies to