Enum DeveloperMetadataVisibility
開發人員中繼資料瀏覽權限列舉開發人員中繼資料瀏覽權限類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT
。
屬性
屬性 | 類型 | 說明 |
DOCUMENT | Enum | 只要是可存取文件的開發人員專案,就能存取文件可見的中繼資料。 |
PROJECT | Enum | 專案可見中繼資料只會向建立中繼資料的開發人員專案顯示,且只有該專案可以存取。請勿將可供專案瀏覽的開發人員中繼資料做為安全機制或用於儲存機密資料。這項資訊可向有權查看文件的使用者公開。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間:2024-12-02 (世界標準時間)。"],[[["`DeveloperMetadataVisibility` is used to define the visibility of developer metadata within a Google document."],["There are two visibility types: `DOCUMENT` which allows any developer project with document access to view the metadata, and `PROJECT` which limits visibility to the creating project only."],["Metadata visibility should not be used for security purposes or to hide sensitive information, as it can be accessed by users with viewing permissions."]]],["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"]]