Partager via


AttributeRelationshipCollection.Add Method

Definition

Overloads

Add(AttributeRelationship)

Adds the specified AttributeRelationship to the end of the collection.

Add(String)

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

Add(AttributeRelationship)

Adds the specified AttributeRelationship to the end of the collection.

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

Parameters

Returns

The zero-based index at which the AttributeRelationship 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 AttributeRelationship is not valid in the collection.
  • The name of the specified AttributeRelationship is not valid in the collection.
  • The compatibility-level of the specified AttributeRelationship is not valid in the collection.

Applies to

Add(String)

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

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

Parameters

attributeId
String

The AttributeID for the new AttributeRelationship object.

Returns

The newly created AttributeRelationship object.

Exceptions

The specified AttributeID is not valid in the collection.

Applies to