Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDataParameterCollection Interface

Represents a collection of all parameters relevant to a Command object.

Namespace:  Microsoft.ReportingServices.DataProcessing
Assemblies:   Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
public interface IDataParameterCollection : IEnumerable

The IDataParameterCollection type exposes the following members.

  NameDescription
Public methodAddAdds an object to the end of the parameter collection.
Public methodGetEnumerator (Inherited from IEnumerable.)
Top

The IDataParameterCollection interface enables you to implement a parameter collection.

An application does not create an instance of the IDataParameterCollection interface directly, but creates an instance of a class that implements IDataParameterCollection.

Classes that implement IDataParameterCollection must implement the required members, and typically define additional members to add provider-specific functionality.

The SQL Server Reporting Services IDataParameterCollection interface inherits from IEnumerable and requires that you implement an Add method. IEnumerable also requires that you implement a GetEnumerator method. Because IDataParameterCollection is a type of IList, you can use an existing class for most of the implementation. For example, if your DataParameter class inherits ArrayList, you can use the default implementation of the ArrayList.GetEnumerator method.

Note to Implementers: When you implement the IDataParameterCollection interface, you should implement the following constructor:

Class

Description

PrvParameterCollection()

Initializes a new instance of the PrvDataParameterCollection class.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.