Поделиться через


AggregationDesignAttributeCollection.Add Метод

Определение

Перегрузки

Add(AggregationDesignAttribute)

Добавляет заданный объект AggregationDesignAttribute в конец коллекции.

Add(String)

Создает объект AggregationDesignAttribute, используя указанный AttributeID, добавляет его в конец коллекции и возвращает созданный объект AggregationDesignAttribute.

Add(AggregationDesignAttribute)

Добавляет заданный объект AggregationDesignAttribute в конец коллекции.

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

Параметры

item
AggregationDesignAttribute

Добавляемый объект AggregationDesignAttribute.

Возвращаемое значение

Отсчитываемый от нуля индекс, по которому объект AggregationDesignAttribute был добавлен в коллекцию.

Исключения

  • Указанный элемент является пустой ссылкой (Nothing в Visual Basic).
  • Указанный элемент уже существует в коллекции.
  • Атрибутивный идентификатор указанного AggregationDesignAttribute недействителен в коллекции.
  • Недопустимое имя указанного AggregationDesignAttribute объекта в коллекции.
  • Уровень совместимости указанного недействителен AggregationDesignAttribute в коллекции.

Применяется к

Add(String)

Создает объект AggregationDesignAttribute, используя указанный AttributeID, добавляет его в конец коллекции и возвращает созданный объект AggregationDesignAttribute.

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

Параметры

attributeId
String

AttributeID для нового объекта AggregationDesignAttribute.

Возвращаемое значение

Созданный объект AggregationDesignAttribute.

Исключения

Указанный идентификатор AttributeID недопустим в коллекции.

Применяется к