Udostępnij przez


Metoda AccountCollection.Insert (Int32, String)

Tworzy i wstawia Account, 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, _
    accountType As String _
) As Account
'Użycie
Dim instance As AccountCollection
Dim index As Integer
Dim accountType As String
Dim returnValue As Account

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

Parametry

Wartość zwracana

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

Wyjątki

Wyjątek Warunek
ArgumentOutOfRangeException

indexjest mniejszy od zera.

- lub -

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