PartitionCollection.Insert Yöntemi (Int32, String)
Oluşturur ve ekler bir Partition, belirtilen tanımlayıcısı ile içine koleksiyon adresinde belirtilen dizini.
Ad Alanı: Microsoft.AnalysisServices
Derleme: Microsoft.AnalysisServices (Microsoft.AnalysisServices içinde.dll)
Sözdizimi
'Bildirim
Public Function Insert ( _
index As Integer, _
name As String _
) As Partition
'Kullanım
Dim instance As PartitionCollection
Dim index As Integer
Dim name As String
Dim returnValue As Partition
returnValue = instance.Insert(index, name)
public Partition Insert(
int index,
string name
)
public:
Partition^ Insert(
int index,
String^ name
)
member Insert :
index:int *
name:string -> Partition
public function Insert(
index : int,
name : String
) : Partition
Parametreler
- index
Tür: System.Int32
Hangi sıfır tabanlı dizin yeni Partition eklenecektir.
- name
Tür: System.String
Adı Partition eklenecek.
Dönüş Değeri
Tür: Microsoft.AnalysisServices.Partition
Bir yeni, boş Partition.
Kural dışı durumlar
Özel durum | Koşul |
---|---|
ArgumentOutOfRangeException | indexsıfırdan küçük. - veya - index' e eşit veya daha büyük [H:Microsoft.AnalysisServices.ModelComponentCollection.Count]. |
Ayrıca bkz.