Enum MimeType
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نوع Mime یک عدد برای انواع mime که می توان از یک اسکریپت ارائه کرد.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. به عنوان مثال، ContentService.MimeType.CSV
.
خواص
اموال | تایپ کنید | توضیحات |
---|
CSV | Enum | نوع Mime CSV |
ICAL | Enum | نوع Mime ICAL |
JAVASCRIPT | Enum | JAVASCRIPT نوع Mime |
JSON | Enum | JSON Mime Type |
TEXT | Enum | TEXT Mime Type |
VCARD | Enum | نوع Mime VCARD |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\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 |"]]