Enum MimeType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
MimeType
Enum typów MIME, które mogą być wyświetlane ze skryptu.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
ContentService.MimeType.CSV
.
Właściwości
Właściwość | Typ | Opis |
CSV | Enum | Typ MIME pliku CSV |
ICAL | Enum | Typ MIME ICAL |
JAVASCRIPT | Enum | Typ MIME JAVASCRIPT |
JSON | Enum | Typ mime JSON |
TEXT | Enum | Typ MIME tekstowy |
VCARD | Enum | Typ MIME vCard |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eMimeType\u003c/code\u003e is an enum used to specify the format of content served from a Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eYou can access specific mime types by calling \u003ccode\u003eContentService.MimeType\u003c/code\u003e followed by the desired type, like \u003ccode\u003eContentService.MimeType.JSON\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAvailable mime types include CSV, ICAL, JAVASCRIPT, JSON, TEXT, and VCARD for various content formats.\u003c/p\u003e\n"]]],["`MimeType` is an enum representing different mime types for script-served content. It is accessed via its parent class, name, and property (e.g., `ContentService.MimeType.CSV`). The properties include `CSV`, `ICAL`, `JAVASCRIPT`, `JSON`, `TEXT`, and `VCARD`, each representing a specific mime type. They each have an enum type. Each represents a different Mime type for a script.\n"],null,["# Enum MimeType\n\nMimeType\n\nAn enum for mime types that can be served from a script.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nContentService.MimeType.CSV`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|----------------------|\n| `CSV` | `Enum` | CSV Mime Type |\n| `ICAL` | `Enum` | ICAL Mime Type |\n| `JAVASCRIPT` | `Enum` | JAVASCRIPT Mime Type |\n| `JSON` | `Enum` | JSON Mime Type |\n| `TEXT` | `Enum` | TEXT Mime Type |\n| `VCARD` | `Enum` | VCARD Mime Type |"]]