Version

TryParse(String,CellReferenceMode,CultureInfo,ArrayFormula,FormulaParseException) Method

Parses the specified formula value. The return value indicates whether the operation succeeded.
Syntax
'Declaration
 
Public Overloads Shared Function TryParse( _
   ByVal value As String, _
   ByVal cellReferenceMode As CellReferenceMode, _
   ByVal culture As CultureInfo, _
   ByRef formula As ArrayFormula, _
   ByRef exception As FormulaParseException _
) As Boolean
public static bool TryParse( 
   string value,
   CellReferenceMode cellReferenceMode,
   CultureInfo culture,
   out ArrayFormula formula,
   out FormulaParseException exception
)

Parameters

value
The string which defines the array formula to parse.
cellReferenceMode
The mode used to interpret cell references in the array formula.
culture
The culture used to parse the formula.
formula
When this method returns, contains the array formula which was parsed from value if the conversion succeeded or null if the conversion failed. This parameter is passed uninitialized.
exception
When this method returns, contains the error information if the conversion failed or null if the conversion succeeded. This parameter is passed uninitialized.

Return Value

True if value was converted successfully; False otherwise.
Exceptions
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also