DataSourceCollection.Insert 方法

定义

重载

Insert(Int32, String, String)

使用指定的名称和标识符创建一个新的 DataSource 对象,将其插入到集合中的指定索引处,并返回新创建的 DataSource。

Insert(Int32, String)

使用指定的名称创建一个新的 DataSource 对象,将其插入到集合中的指定索引处,并返回新创建的 DataSource。

Insert(Int32)

使用生成的唯一名称和标识符创建一个新的 DataSource 对象,将其插入到集合中的指定索引处,并返回新创建的 DataSource。

Insert(Int32, DataSource)

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

Insert(Int32, String, String)

使用指定的名称和标识符创建一个新的 DataSource 对象,将其插入到集合中的指定索引处,并返回新创建的 DataSource。

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

参数

index
Int32

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

name
String

新的 DataSource 对象的名称。

id
String

新的 DataSource 对象的标识符。

返回

新创建的 DataSource 对象。

例外

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

  • 指定的名称在集合中无效。
  • 指定的标识符在集合中无效。

适用于

Insert(Int32, String)

使用指定的名称创建一个新的 DataSource 对象,将其插入到集合中的指定索引处,并返回新创建的 DataSource。

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

参数

index
Int32

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

name
String

新的 DataSource 对象的名称。 它在集合中必须是唯一的。

返回

新创建的 DataSource 对象。

例外

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

指定的名称在集合中无效。

注解

根据指定的名称生成该 DataSource 标识符。

适用于

Insert(Int32)

使用生成的唯一名称和标识符创建一个新的 DataSource 对象,将其插入到集合中的指定索引处,并返回新创建的 DataSource。

public Microsoft.AnalysisServices.RelationalDataSource Insert (int index);
override this.Insert : int -> Microsoft.AnalysisServices.RelationalDataSource
Public Function Insert (index As Integer) As RelationalDataSource

参数

index
Int32

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

返回

新创建的 DataSource 对象。

例外

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

适用于

Insert(Int32, DataSource)

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

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

参数

index
Int32

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

item
DataSource

要插入的 DataSource

例外

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

  • 指定的项为空引用 (在 Visual Basic 中为 Nothing)。
  • 集合中已存在指定的项。
  • 指定的 DataSource 标识符在集合中无效。
  • 指定的名称 DataSource 在集合中无效。
  • 指定的 DataSource 兼容性级别在集合中无效。

适用于