Metoda AggregationDesignAttributeCollection.Insert (Int32, String)
Tworzy i wstawia AggregationDesignAttribute, 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 AggregationDesignAttribute
'Użycie
Dim instance As AggregationDesignAttributeCollection
Dim index As Integer
Dim attributeId As String
Dim returnValue As AggregationDesignAttribute
returnValue = instance.Insert(index, attributeId)
public AggregationDesignAttribute Insert(
int index,
string attributeId
)
public:
AggregationDesignAttribute^ Insert(
int index,
String^ attributeId
)
member Insert :
index:int *
attributeId:string -> AggregationDesignAttribute
public function Insert(
index : int,
attributeId : String
) : AggregationDesignAttribute
Parametry
- index
Typ: System.Int32
Od zera indeksu, w którym nowy AggregationDesignAttribute będą wstawiane.
- attributeId
Typ: System.String
Wartość zwracana
Typ: Microsoft.AnalysisServices.AggregationDesignAttribute
Nowy, pusty AggregationDesignAttribute.
Wyjątki
Wyjątek | Warunek |
---|---|
ArgumentOutOfRangeException | indexjest mniejszy od zera. - lub - indexjest równa lub większa niż [H:Microsoft.AnalysisServices.ModelComponentCollection.Count]. |