Metoda DataSourceViewCollection.Insert (Int32, DataSourceView)
Wstawia DataSourceView do kolekcja pod określonym indeksem.
Przestrzeń nazw: Microsoft.AnalysisServices
Zestaw: Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)
Składnia
'Deklaracja
Public Sub Insert ( _
index As Integer, _
item As DataSourceView _
)
'Użycie
Dim instance As DataSourceViewCollection
Dim index As Integer
Dim item As DataSourceView
instance.Insert(index, item)
public void Insert(
int index,
DataSourceView item
)
public:
void Insert(
int index,
DataSourceView^ item
)
member Insert :
index:int *
item:DataSourceView -> unit
public function Insert(
index : int,
item : DataSourceView
)
Parametry
- index
Typ: System.Int32
Od zera indeksu, w którym nowy DataSourceView będą wstawiane.
- item
Typ: Microsoft.AnalysisServices.DataSourceView
DataSourceView Do wstawienia.
Wyjątki
| Wyjątek | Warunek |
|---|---|
| ArgumentOutOfRangeException | indexjest mniejszy od zera. - lub - indexjest równa lub większa niż [H:Microsoft.AnalysisServices.ModelComponentCollection.Count]. |
Zobacz także