Record.SelectFields
语法
Record.SelectFields(record as record, fields as any, optional missingField as nullable number) as record
关于
从输入 record
返回一条记录,该记录仅包含在列表 fields
中指定的字段。
示例 1
选择记录中的字段“Item”和“Price”。
使用情况
Record.SelectFields(
[OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0],
{"Item", "Price"}
)
输出
[Item = "Fishing rod", Price = 100]
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈