Udostępnij za pośrednictwem


Metoda CubeCollection.Insert (Int32, String)

Tworzy i wstawia Cube, z identyfikatorem określonego 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 _
) As Cube
'Użycie
Dim instance As CubeCollection
Dim index As Integer
Dim name As String
Dim returnValue As Cube

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

Parametry

  • index
    Typ: System.Int32
    Od zera indeksu, w którym nowy Cube będą wstawiane.

Wartość zwracana

Typ: Microsoft.AnalysisServices.Cube
Nowy, pusty Cube.

Wyjątki

Wyjątek Warunek
ArgumentOutOfRangeException

indexjest mniejszy od zera.

- lub -

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