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