Type.ForFunction
使用特定的參數和傳回類型條件約束,傳回代表函數的類型。
Syntax
Type.ForFunction(
signature as record,
min as number
) as type
Remarks
從 signature 建立叫用函數所需的 function type、ReturnType 記錄和 Parameters 以及 min,與最少數目的引數。
Examples
Example #1
為使用名為 X 之數字參數的函式建立類型並傳回數字。
Type.ForFunction([ReturnType = type number, Parameters = [X = type number]], 1)
Result:
type function (X as number) as number
Category
Type