Properties Service
媒体资源
借助此服务,脚本可以将字符串存储为键值对,范围限定为一个脚本、一个脚本的用户或使用编辑器插件的一个文档。如需详细了解何时使用每种类型的媒体资源,请参阅媒体资源服务指南。
类
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["The Properties Service allows scripts to store data as key-value pairs, with different scopes available: script, user, or document."],["This service offers classes for managing properties like Properties, PropertiesService, ScriptProperties, and UserProperties, each with its own specific purpose."],["Properties can be manipulated with methods such as deleting, retrieving by key or in bulk, and setting new values."],["Different property stores can be accessed, including document-specific, script-wide, or user-specific stores, through the PropertiesService class."]]],[]]