Metoda RoleCollection.Insert (Int32)
Tworzy i wstawia Role 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 _
) As Role
'Użycie
Dim instance As RoleCollection
Dim index As Integer
Dim returnValue As Role
returnValue = instance.Insert(index)
public Role Insert(
int index
)
public:
Role^ Insert(
int index
)
member Insert :
index:int -> Role
public function Insert(
index : int
) : Role
Parametry
- index
Typ: System.Int32
Od zera indeksu, w którym chcesz wstawić nowy Role.
Wartość zwracana
Typ: Microsoft.AnalysisServices.Role
Nowy, pusty Role.
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