你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobInput 接口
public interface BlobInput
BlobInput (name = “file”, dataType = “binary”, path = “samples-workitems/{queueTrigger}”) byte[] 内容, 最终 ExecutionContext 上下文 ) { context.getLogger () .info (“大小 \”“ + 文件名 + ”“ 是: ” + content.length + “bytes”) ; }
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
String |
connection()
定义包含 Azure 存储连接字符串的应用设置名称。 |
String |
dataType()
定义 Functions 运行时应如何处理参数值。 可能的值为:
|
String |
name()
function.json 中使用的变量名称。 |
String |
path()
定义要绑定到的 Blob 的路径。 |
方法详细信息
connection
public String connection() default ""
定义包含 Azure 存储连接字符串的应用设置名称。
Returns:
dataType
public String dataType() default ""
定义 Functions 运行时应如何处理参数值。 可能的值为:
<li>
<p>"": get the value as a string, and try to deserialize to actual parameter type like POJO </p>
</li>
<li>
<p>string: always get the value as a string </p>
</li>
<li>
<p>binary: get the value as a binary data, and try to deserialize to actual parameter type byte[] </p>
</li>
Returns:
name
public String name()
function.json 中使用的变量名称。
Returns:
path
public String path()
定义要绑定到的 Blob 的路径。
Returns: