Share via


RelationshipCollection.Add Method

Definition

Overloads

Add(Relationship)

Adds the specified Relationship to this collection.

Add(String)

Creates, adds to collection and returns a new Relationship.

Add(Relationship)

Adds the specified Relationship to this collection.

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

Parameters

item
Relationship

The Relationship to add to this collection.

Returns

The zero-based index in collection where the item was added.

Applies to

Add(String)

Creates, adds to collection and returns a new Relationship.

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

Parameters

id
String

The ID for the new Relationship (needs to be unique in this collection).

Returns

The newly created Relationship.

Applies to