Enum DeveloperMetadataVisibility
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
EntwicklerMetadatenSichtbarkeit
Eine Aufzählung der Sichtbarkeitstypen für Entwicklermetadaten.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
SpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT
.
Attribute
Attribut | Typ | Beschreibung |
DOCUMENT | Enum | Auf Metadaten, die im Dokument sichtbar sind, kann über jedes Entwicklerprojekt mit Zugriff auf das Dokument zugegriffen werden. |
PROJECT | Enum | Projektmetadaten sind nur für das Entwicklerprojekt sichtbar und zugänglich, in dem die Metadaten erstellt wurden. Verwenden Sie projektsichtbare Entwicklermetadaten nicht als Sicherheitsmechanismus oder zum Speichern von Geheimnissen. Sie kann für Nutzer mit Lesezugriff auf das Dokument freigegeben werden. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]