语言

Parameter 接口

定义

代表一个在参数查询中使用的参数。 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)

定义指定查询表的参数。

适用于