共用方式為


FunctionUtils.ValidateOrder(Expression, ReturnType[], ReturnType[]) 方法

定義

驗證函式的引數數目和類型。

public static void ValidateOrder (AdaptiveExpressions.Expression expression, AdaptiveExpressions.ReturnType[] optional, params AdaptiveExpressions.ReturnType[] types);
static member ValidateOrder : AdaptiveExpressions.Expression * AdaptiveExpressions.ReturnType[] * AdaptiveExpressions.ReturnType[] -> unit
Public Shared Sub ValidateOrder (expression As Expression, optional As ReturnType(), ParamArray types As ReturnType())

參數

expression
Expression

要驗證的運算式。

optional
ReturnType[]

依序選擇型別。

types
ReturnType[]

預期的類型順序。

適用於