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