Parameter 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
代表一个在参数查询中使用的参数。 Parameter 对象是 集合的成员Parameters。
public interface class Parameter
[System.Runtime.InteropServices.Guid("0002442A-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Parameter
Public Interface Parameter
- 属性
属性
Application |
返回一个 Application 对象,该对象代表 Microsoft Excel 应用程序。 此为只读属性。 |
Creator |
返回一个 32 位整数,该整数指示在其中创建了此对象的应用程序。 如果该对象是在 Microsoft Excel 中创建的,则此属性返回字符串 XCEL,它等同于十六进制的数字 5843454C。 只读 XlCreator。 |
DataType |
返回或设置指定查询参数的数据类型。 读/写 XlParameterDataType。 |
Name |
返回或设置对象的名称。 读/写 String。 |
Parent |
返回指定对象的父对象。 只读。 |
PromptString |
返回提示用户在参数查询输入参数值的短语。 只读 String。 |
RefreshOnChange |
如果每次更改参数查询的参数值时都要刷新指定的查询表,则该属性值为 True。 读/写 Boolean。 |
SourceRange |
返回一个 Range 对象,该对象表示包含指定查询参数的值的单元格。 此为只读属性。 |
Type |
返回或设置参数类型。 只读 XlParameterType。 |
Value |
参数值。 有关详细信息,请参阅 Parameter 对象。 只读 对象 。 |
方法
SetParam(XlParameterType, Object) |
定义指定查询表的参数。 |