Is valid MIME type(是否为有效 MIME 类型)¶
Supported in: Batch, Faster, Streaming
Returns true if the input is a valid MIME type.
Expression categories: Boolean, Other
Declared arguments¶
- Expression: String representing a MIME type.
Expression\
Output type: Boolean
Examples¶
Example 1: Base case¶
Argument values:
- Expression:
mimeType
| mimeType | Output |
|---|---|
| application/pdf | true |
| not a MIME type | false |
中文翻译¶
是否为有效 MIME 类型¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
如果输入是有效的 MIME 类型,则返回 true。
表达式类别: 布尔值(Boolean)、其他(Other)
声明的参数¶
- 表达式(Expression): 表示 MIME 类型的字符串。
表达式\<字符串>
输出类型: 布尔值(Boolean)
示例¶
示例 1:基本情况¶
参数值:
- 表达式(Expression):
mimeType
| mimeType | 输出(Output) |
|---|---|
| application/pdf | true |
| 非 MIME 类型 | false |