Share via


MeasureGroupAttributeCollection.Add Method

Definition

Overloads

Add(MeasureGroupAttribute)

Adds the specified MeasureGroupAttribute to the end of the collection.

Add(String)

Creates a new MeasureGroupAttribute object using the specified AttributeID, adds it to the end of the collection and returns the new MeasureGroupAttribute created.

Add(MeasureGroupAttribute)

Adds the specified MeasureGroupAttribute to the end of the collection.

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

Parameters

Returns

The zero-based index at which the MeasureGroupAttribute has been added to the collection.

Exceptions

  • The specified item is a null reference (Nothing in Visual Basic).
  • The specified item already esists in the collection.
  • The AttributeID of the specified MeasureGroupAttribute is not valid in the collection.
  • The name of the specified MeasureGroupAttribute is not valid in the collection.
  • The compatibility-level of the specified MeasureGroupAttribute is not valid in the collection.

Applies to

Add(String)

Creates a new MeasureGroupAttribute object using the specified AttributeID, adds it to the end of the collection and returns the new MeasureGroupAttribute created.

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

Parameters

attributeId
String

The AttributeID for the new MeasureGroupAttribute object.

Returns

The newly created MeasureGroupAttribute object.

Exceptions

The specified AttributeID is not valid in the collection.

Applies to