PrimitiveValueConversions.TryMarshal Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.