Udostępnij przez


Metoda MeasureGroupAttributeCollection.Insert (Int32, String)

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

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

Parametry

Wyjątki

Wyjątek Warunek
ArgumentOutOfRangeException

indexjest mniejszy od zera.

- lub -

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