Metoda RoleCollection.Insert (Int32, String)
Tworzy i wstawia Role, 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 Role
'Użycie
Dim instance As RoleCollection
Dim index As Integer
Dim name As String
Dim returnValue As Role
returnValue = instance.Insert(index, name)
public Role Insert(
int index,
string name
)
public:
Role^ Insert(
int index,
String^ name
)
member Insert :
index:int *
name:string -> Role
public function Insert(
index : int,
name : String
) : Role
Parametry
- index
Typ: System.Int32
Od zera indeksu, w którym chcesz wstawić nowy Role.
- name
Typ: System.String
Nazwa Role do wstawiania.
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