Enum DeveloperMetadataVisibility
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
开发者元数据公开范围
开发者元数据公开范围类型的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
SpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT
。
属性
属性 | 类型 | 说明 |
DOCUMENT | Enum | 具有文档访问权限的任何开发者项目都可以访问文档可见的元数据。 |
PROJECT | Enum | 项目可见的元数据仅对创建元数据的开发者项目可见且仅能由该项目访问。请勿将项目公开的开发者元数据用作安全机制或用于存储密钥。它可向对文档具有查看权限的用户显示。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eDeveloperMetadataVisibility\u003c/code\u003e is used to define the visibility of developer metadata within a Google document.\u003c/p\u003e\n"],["\u003cp\u003eThere are two visibility types: \u003ccode\u003eDOCUMENT\u003c/code\u003e which allows any developer project with document access to view the metadata, and \u003ccode\u003ePROJECT\u003c/code\u003e which limits visibility to the creating project only.\u003c/p\u003e\n"],["\u003cp\u003eMetadata visibility should not be used for security purposes or to hide sensitive information, as it can be accessed by users with viewing permissions.\u003c/p\u003e\n"]]],["Developer metadata visibility is categorized into two types: `DOCUMENT` and `PROJECT`. `DOCUMENT`-visible metadata can be accessed by any developer project with document access. `PROJECT`-visible metadata is restricted to the creating project. Project metadata should not be used for security or storing secrets, as it can be exposed to users with view access to the document. The way to use these properties is by referencing `SpreadsheetApp.DeveloperMetadataVisibility`.\n"],null,["# Enum DeveloperMetadataVisibility\n\nDeveloperMetadataVisibility\n\nAn enumeration of the types of developer metadata visibility.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT`. \n\n### Properties\n\n| Property | Type | Description |\n|------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `DOCUMENT` | `Enum` | Document-visible metadata is accessible from any developer project with access to the document. |\n| `PROJECT` | `Enum` | Project-visible metadata is only visible to and accessible by the developer project that created the metadata. Do not use project-visible developer metadata as a security mechanism or to store secrets. It can be exposed to users with view access to the document. |"]]