AggregationDesignAttributeCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(AggregationDesignAttribute) |
Adds the specified AggregationDesignAttribute to the end of the collection. |
Add(String) |
Creates a new AggregationDesignAttribute object using the specified AttributeID, adds it to the end of the collection and returns the new AggregationDesignAttribute created. |
Add(AggregationDesignAttribute)
Adds the specified AggregationDesignAttribute to the end of the collection.
public int Add (Microsoft.AnalysisServices.AggregationDesignAttribute item);
override this.Add : Microsoft.AnalysisServices.AggregationDesignAttribute -> int
Public Function Add (item As AggregationDesignAttribute) As Integer
Parameters
The AggregationDesignAttribute to be added.
Returns
The zero-based index at which the AggregationDesignAttribute 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 AggregationDesignAttribute is not valid in the collection.
- The name of the specified AggregationDesignAttribute is not valid in the collection.
- The compatibility-level of the specified AggregationDesignAttribute is not valid in the collection.
Applies to
Add(String)
Creates a new AggregationDesignAttribute object using the specified AttributeID, adds it to the end of the collection and returns the new AggregationDesignAttribute created.
public Microsoft.AnalysisServices.AggregationDesignAttribute Add (string attributeId);
override this.Add : string -> Microsoft.AnalysisServices.AggregationDesignAttribute
Public Function Add (attributeId As String) As AggregationDesignAttribute
Parameters
- attributeId
- String
The AttributeID for the new AggregationDesignAttribute object.
Returns
The newly created AggregationDesignAttribute object.
Exceptions
The specified AttributeID is not valid in the collection.