Export (0) Print
Expand All

AttributeRelationshipCollection.Insert Method (Int32, String)

Creates and inserts the specified AttributeRelationship into the collection at the specified index.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

public AttributeRelationship Insert(
	int index,
	string attributeId
)

Parameters

index
Type: System.Int32
An int value with the location at which AttributeRelationship is to be inserted.
attributeId
Type: System.String
Identifies the attribute of the Aggregation to be inserted.

Return Value

Type: Microsoft.AnalysisServices.AttributeRelationship
The AttributeRelationship that was inserted to the collection.

ExceptionCondition
ArgumentOutOfRangeException

You might receive one of the following error messages:

index is less than zero.

index is equal to or greater than [H:Microsoft.AnalysisServices.ModelComponentCollection.Count].

Community Additions

ADD
Show:
© 2014 Microsoft