Enum DeveloperMetadataVisibility
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
นักพัฒนาแอประดับการมองเห็นข้อมูลเมตา
การแจกแจงประเภทการเปิดเผยข้อมูลเมตาของนักพัฒนาแอป
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
SpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
DOCUMENT | Enum | ข้อมูลเมตาที่แสดงในเอกสารจะเข้าถึงได้จากโปรเจ็กต์ของนักพัฒนาแอปทุกโปรเจ็กต์ที่มีสิทธิ์เข้าถึงเอกสาร |
PROJECT | Enum | ข้อมูลเมตาที่โปรเจ็กต์มองเห็นจะแสดงและเข้าถึงได้เฉพาะโปรเจ็กต์ของนักพัฒนาแอปที่สร้างข้อมูลเมตาเท่านั้น อย่าใช้ข้อมูลเมตาของนักพัฒนาซอฟต์แวร์ที่มองเห็นได้ในโปรเจ็กต์เป็นกลไกการรักษาความปลอดภัยหรือเพื่อจัดเก็บข้อมูลลับ ผู้ใช้ที่มีสิทธิ์ดูเอกสารจะดูข้อมูลนี้ได้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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. |"]]