PerspectiveKpiCollection.Add 方法

定义

重载

Add(PerspectiveKpi)

将指定的 PerspectiveKpi 添加到集合末尾。

Add(String)

使用指定的 KpiID 创建一个新的 PerspectiveKpi 对象,将其添加到集合末尾,并返回新创建的 PerspectiveKpi。

Add(PerspectiveKpi)

将指定的 PerspectiveKpi 添加到集合末尾。

public int Add (Microsoft.AnalysisServices.PerspectiveKpi item);
override this.Add : Microsoft.AnalysisServices.PerspectiveKpi -> int
Public Function Add (item As PerspectiveKpi) As Integer

参数

item
PerspectiveKpi

要添加的 PerspectiveKpi

返回

PerspectiveKpi 添加到集合时所在的从零开始的索引。

例外

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

适用于

Add(String)

使用指定的 KpiID 创建一个新的 PerspectiveKpi 对象,将其添加到集合末尾,并返回新创建的 PerspectiveKpi。

public Microsoft.AnalysisServices.PerspectiveKpi Add (string id);
override this.Add : string -> Microsoft.AnalysisServices.PerspectiveKpi
Public Function Add (id As String) As PerspectiveKpi

参数

id
String

新的 PerspectiveKpi 对象的 KpiID。

返回

新创建的 PerspectiveKpi 对象。

例外

指定的 KpiID 在集合中无效。

适用于