.alter function folder.alter function folder

更改现有函数的 Folder 值。Alters the Folder value of an existing function.

.alter function FunctionName folder Folder.alter function FunctionName folder Folder

备注

输出参数Output parameter 类型Type 说明Description
名称Name StringString 函数的名称。The name of the function.
parametersParameters StringString 函数所需的参数。The parameters that are required by the function.
正文Body StringString (零个或多个)Let 语句,后跟有效的 CSL 表达式,该表达式在函数调用时求值。(Zero or more) Let statements followed by a valid CSL expression that is evaluated upon function invocation.
文件夹Folder StringString 用于 UI 函数分类的文件夹。A folder that is used for UI functions categorization. 此参数不会更改调用函数的方式。This parameter does not change the way function is invoked.
DocStringDocString StringString 用于 UI 目的的函数说明。A description of the function for UI purposes.

示例Example

.alter function MyFunction1 folder "Updated Folder"
名称Name parametersParameters 正文Body 文件夹Folder DocStringDocString
MyFunction2MyFunction2 (myLimit: long)(myLimit: long) {StormEvents | limit myLimit}{StormEvents | limit myLimit} 已更新的文件夹Updated Folder 一些 DocStringSome DocString
.alter function MyFunction1 folder @"First Level\Second Level"
名称Name parametersParameters 正文Body 文件夹Folder DocStringDocString
MyFunction2MyFunction2 (myLimit: long)(myLimit: long) {StormEvents | limit myLimit}{StormEvents | limit myLimit} 第一级\第二级First Level\Second Level 一些 DocStringSome DocString