Udostępnij za pośrednictwem


Metoda ReportParameterCollection.Insert (Int32, String, String)

Tworzy i wstawia ReportParameter, z określonej nazwy i wartości do kolekcja pod określonym indeksem.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
Public Function Insert ( _
    index As Integer, _
    name As String, _
    value As String _
) As ReportParameter
'Użycie
Dim instance As ReportParameterCollection
Dim index As Integer
Dim name As String
Dim value As String
Dim returnValue As ReportParameter

returnValue = instance.Insert(index, name, _
    value)
public ReportParameter Insert(
    int index,
    string name,
    string value
)
public:
ReportParameter^ Insert(
    int index, 
    String^ name, 
    String^ value
)
member Insert : 
        index:int * 
        name:string * 
        value:string -> ReportParameter 
public function Insert(
    index : int, 
    name : String, 
    value : String
) : ReportParameter

Parametry

Wartość zwracana

Typ: Microsoft.AnalysisServices.ReportParameter
ReportParameter , Została umieszczona kolekcja.

Wyjątki

Wyjątek Warunek
ArgumentOutOfRangeException

indexjest mniejszy od zera.

- lub -

indexjest równa lub większa niż [H:Microsoft.AnalysisServices.ModelComponentCollection.Count].