ReportParameter Class

Definition

表示报表参数。Represents a report parameter.

public ref class ReportParameter
public class ReportParameter
type ReportParameter = class
Public Class ReportParameter
Inheritance
ReportParameter

Remarks

ReportParameter对象作为方法的输出返回 GetReportParameters ,并作为输入传递给 SetReportParameters 方法。A ReportParameter object is returned as output by the GetReportParameters method and is passed as input to the SetReportParameters method.

如果用户调用,则的值 ReportParameter 可能会更改 SetReportDefinitionThe value of the ReportParameter may change if the user calls SetReportDefinition.

Constructors

ReportParameter()

初始化 ReportParameter 类的新实例。Initializes a new instance of the ReportParameter class.

Properties

AllowBlank

指示空字符串是否为该参数的有效值。Indicates whether an empty string is a valid value for the parameter. 只读。Read-only.

AllowBlankSpecified

指示已指定了 AllowBlank 属性。Indicates that the AllowBlank property has been specified.

DefaultValues

获取或设置参数的默认值。Gets or sets the default values of the parameter.

DefaultValuesQueryBased

指示该参数的默认值是否基于查询。Indicates whether the default values of the parameter are based on a query. Boolean.Boolean. 只读。Read-only.

DefaultValuesQueryBasedSpecified

指示是否已经指定了 DefaultValuesQueryBased 属性。Indicates whether the DefaultValuesQueryBased property has been specified.

Dependencies

获取或设置一个参数列表,这些参数的值用于检索查询中的其他参数值。Gets or sets a list of parameters whose values are used to retrieve additional parameter values in a query.

ErrorMessage

当参数未通过验证时返回的错误消息。An error message, returned when the parameter has failed validation.

MultiValue

指示该参数能否为多值参数。Indicates whether the parameter can be a multivalue parameter.

MultiValueSpecified

指示是否已经指定了 MultiValue 属性。Indicates whether the MultiValue property has been specified.

Name

获取或设置参数的名称。Gets or sets the name of the parameter.

Nullable

指示参数的值是否可为 nullIndicates whether the value of the parameter can be null.

NullableSpecified

指示是否已经指定了 Nullable 属性。Indicates whether the Nullable property has been specified.

Prompt

获取或设置提示用户提供参数值的文本。Gets or sets the text that prompts the user to provide parameter values.

PromptUser

指示是否提示用户提供参数值。Indicates whether the user is prompted for the value of the parameter.

PromptUserSpecified

指示是否指定了 PromptUser 属性的值。Indicates whether a value for the PromptUser property is specified.

QueryParameter

指示在针对外部数据源的查询中是否使用该参数。Indicates whether the parameter is used in a query to an external data source.

QueryParameterSpecified

指示是否已经指定了 ReportParameter 属性。Indicates whether the ReportParameter property has been specified.

State

描述参数的状态 (ParameterStateEnum)。Describes the state (ParameterStateEnum) of the parameter.

StateSpecified

指示是否已经指定了 State 属性。Indicates whether the State property has been specified.

Type

参数的数据类型 (ParameterTypeEnum)。The data type (ParameterTypeEnum) of the parameter.

TypeSpecified

指示是否已经指定了 Type 属性。Indicates whether the Type property has been specified.

ValidValues

参数的可用有效值。The available valid values for the parameter. 只读。Read-only.

ValidValuesQueryBased

指示参数的有效值是否基于查询。Indicates whether the parameter's valid values are based on a query. 只读。Read-only.

ValidValuesQueryBasedSpecified

指示是否已经指定了 ValidValuesQueryBased 属性。Indicates whether the ValidValuesQueryBased property has been specified.

Applies to