Freigeben über


PrimitiveValueConversions.TryMarshal Method

Definition

Marshal from a dotnet primitive to a given Power Fx type. Call ToObject() to go the other direction and get a dotnet object from a formulavalue.

public static bool TryMarshal(object value, Microsoft.PowerFx.Types.FormulaType type, out Microsoft.PowerFx.Types.FormulaValue result);
static member TryMarshal : obj * Microsoft.PowerFx.Types.FormulaType * FormulaValue -> bool
Public Shared Function TryMarshal (value As Object, type As FormulaType, ByRef result As FormulaValue) As Boolean

Parameters

value
Object

dotnet value.

type
FormulaType

target power fx type to marshal to.

result
FormulaValue

Returns

True on success with result set to a non-null value.

Applies to