AccountCollection.Insert 方法

定义

重载

Insert(Int32, Account)

将指定的 Account 插入到集合中的指定索引处。

Insert(Int32, String)

使用指定的帐户类型创建一个新的 Account 对象,将其插入到集合中的指定索引处,并返回新创建的 Account。

Insert(Int32, Account)

将指定的 Account 插入到集合中的指定索引处。

public void Insert (int index, Microsoft.AnalysisServices.Account item);
override this.Insert : int * Microsoft.AnalysisServices.Account -> unit
Public Sub Insert (index As Integer, item As Account)

参数

index
Int32

插入 Account 时所在的从零开始的索引。

item
Account

要插入的 Account

例外

指定的索引不是有效值(小于零或大于元素总数)。

  • 指定的项为空引用 (在 Visual Basic 中为 Nothing)。
  • 集合中已存在指定的项。
  • 指定的 Account 帐户类型在集合中无效。
  • 指定的 Account 兼容性级别在集合中无效。

适用于

Insert(Int32, String)

使用指定的帐户类型创建一个新的 Account 对象,将其插入到集合中的指定索引处,并返回新创建的 Account。

public Microsoft.AnalysisServices.Account Insert (int index, string accountType);
override this.Insert : int * string -> Microsoft.AnalysisServices.Account
Public Function Insert (index As Integer, accountType As String) As Account

参数

index
Int32

插入 Account 时所在的从零开始的索引。

accountType
String

新的 Account 对象的帐户类型。

返回

新创建的 Account 对象。

例外

指定的索引不是有效值(小于零或大于元素总数)。

指定的帐户类型在集合中无效。

适用于