ReportParameter Class

Represents a report parameter.

Inheritance Hierarchy

System.Object
  ReportExecution2005.ReportParameter

Namespace:  ReportExecution2005
Assembly:  ReportExecution2005 (in ReportExecution2005.dll)

Syntax

'Declaration
Public Class ReportParameter
'Usage
Dim instance As ReportParameter
public class ReportParameter
public ref class ReportParameter
type ReportParameter =  class end
public class ReportParameter

The ReportParameter type exposes the following members.

Constructors

  Name Description
Public method ReportParameter Initializes a new instance of the ReportParameter class.

Top

Properties

  Name Description
Public property AllowBlank Indicates whether an empty string is a valid value for the parameter. Read-only.
Public property AllowBlankSpecified Indicates that the AllowBlank property has been specified.
Public property DefaultValues Gets or sets the default values of the parameter.
Public property DefaultValuesQueryBased Indicates whether the default values of the parameter are based on a query. Boolean. Read-only.
Public property DefaultValuesQueryBasedSpecified Indicates whether the DefaultValuesQueryBased property has been specified.
Public property Dependencies Gets or sets a list of parameters whose values are used to retrieve additional parameter values in a query.
Public property ErrorMessage An error message, returned when the parameter has failed validation.
Public property MultiValue Indicates whether the parameter can be a multivalue parameter.
Public property MultiValueSpecified Indicates whether the MultiValue property has been specified.
Public property Name Gets or sets the name of the parameter.
Public property Nullable Indicates whether the value of the parameter can be nulla null reference (Nothing in Visual Basic).
Public property NullableSpecified Indicates whether the Nullable property has been specified.
Public property Prompt Gets or sets the text that prompts the user to provide parameter values.
Public property PromptUser Indicates whether the user is prompted for the value of the parameter.
Public property PromptUserSpecified Indicates whether a value for the PromptUser property is specified.
Public property QueryParameter Indicates whether the parameter is used in a query to an external data source.
Public property QueryParameterSpecified Indicates whether the ReportParameter property has been specified.
Public property State Describes the state (ParameterStateEnum) of the parameter.
Public property StateSpecified Indicates whether the State property has been specified.
Public property Type The data type (ParameterTypeEnum) of the parameter.
Public property TypeSpecified Indicates whether the Type property has been specified.
Public property ValidValues The available valid values for the parameter. Read-only.
Public property ValidValuesQueryBased Indicates whether the parameter's valid values are based on a query. Read-only.
Public property ValidValuesQueryBasedSpecified Indicates whether the ValidValuesQueryBased property has been specified.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

A ReportParameter object is returned as output by the GetReportParameters method and is passed as input to the SetReportParameters method.

The value of the ReportParameter may change if the user calls SetReportDefinition.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ReportExecution2005 Namespace

Other Resources

Setting Parameter Properties for a Published Report