Office.AddBindingFromPromptOptions interface     
提供用于配置提示和标识已创建的绑定的选项。
属性
| async | 在传递给回调的 AsyncResult 对象的 asyncContext 属性中返回的、未更改的任何类型的用户定义的项。 | 
| id | 绑定的唯一 ID。 如果未提供,则自动生成。 | 
| prompt | 指定显示在提示 UI 中且告诉用户选择内容的字符串。 限制为 200 个字符。 如果未传递 promptText 参数,则显示“请进行选择”。 | 
| sample | Specifies a table of sample data displayed in the prompt UI as an example of the kinds of fields (columns) that can be bound by your add-in. TableData 对象中提供的标头指定字段选择 UI 中使用的标签。 注意:此参数仅在 Access 的加载项中使用。 It is ignored if provided when calling the method in an add-in for Excel. | 
属性详细信息
		asyncContext
	 
	在传递给回调的 AsyncResult 对象的 asyncContext 属性中返回的、未更改的任何类型的用户定义的项。
asyncContext?: any属性值
any
id
绑定的唯一 ID。 如果未提供,则自动生成。
id?: string属性值
string
		promptText
	 
	指定显示在提示 UI 中且告诉用户选择内容的字符串。 限制为 200 个字符。 如果未传递 promptText 参数,则显示“请进行选择”。
promptText?: string属性值
string
		sampleData
	 
	警告
现已弃用此 API。
Microsoft Access is no longer supported.
Specifies a table of sample data displayed in the prompt UI as an example of the kinds of fields (columns) that can be bound by your add-in. TableData 对象中提供的标头指定字段选择 UI 中使用的标签。
注意:此参数仅在 Access 的加载项中使用。 It is ignored if provided when calling the method in an add-in for Excel.
sampleData?: Office.TableData