KpiCollection.Add Method (String, String)
SQL Server 2008 R2
Creates and adds a Kpi, with the specified name and identifier, to the end of the collection.
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Parameters
- name
- Type: System.String
The name of the Kpi to be added.
- id
- Type: System.String
The identifier of the Kpi to be added.
Return Value
Type: Microsoft.AnalysisServices.KpiThe zero-based index at which the Kpi has been added.
