Прочетете на английски

Споделяне чрез


ReportParameterCollection.Add Method

Definition

Overloads

Add(ReportParameter)

Adds the specified ReportParameter to the end of the collection.

Add(String, String)

Creates a new ReportParameter object using the name and value provided, adds it to the collection and returns the new ReportParameter object created.

Add(ReportParameter)

Adds the specified ReportParameter to the end of the collection.

C#
public int Add (Microsoft.AnalysisServices.ReportParameter item);

Parameters

item
ReportParameter

The ReportParameter to be added.

Returns

The zero-based index at which the ReportParameter has been added to the collection.

Exceptions

The specified item is a null reference (Nothing in Visual Basic).

The specified item's name is a null reference (Nothing in Visual Basic).

  • The specified item already esists in the collection.
  • The specified item belongs to another collection.
  • The collection already contains an item with the same name as the specified item.

Applies to

Analysis Services SDK for .NET latest
Продукт Версии
Analysis Services SDK for .NET latest

Add(String, String)

Creates a new ReportParameter object using the name and value provided, adds it to the collection and returns the new ReportParameter object created.

C#
public Microsoft.AnalysisServices.ReportParameter Add (string name, string value);

Parameters

name
String

The Name for the new ReportParameter object.

value
String

The Value for the new ReportParameter object.

Returns

The newly created ReportParameter object.

Exceptions

The specified name is a null reference (Nothing in Visual Basic).

The collection already contains an item with the same name as the specified name.

Applies to

Analysis Services SDK for .NET latest
Продукт Версии
Analysis Services SDK for .NET latest