Condividi tramite


RelationshipCollection.Insert Method

Definition

Overloads

Insert(Int32, Relationship)

Inserts an Relationship into this collection at the specified index.

Insert(Int32, String)

Creates, inserts at the specified index and returns a new Relationship.

Insert(Int32, Relationship)

Inserts an Relationship into this collection at the specified index.

public void Insert (int index, Microsoft.AnalysisServices.Relationship item);
override this.Insert : int * Microsoft.AnalysisServices.Relationship -> unit
Public Sub Insert (index As Integer, item As Relationship)

Parameters

index
Int32

The zero-based index at which the Relationship is inserted.

item
Relationship

The Relationship to insert into this collection.

Applies to

Insert(Int32, String)

Creates, inserts at the specified index and returns a new Relationship.

public Microsoft.AnalysisServices.Relationship Insert (int index, string id);
override this.Insert : int * string -> Microsoft.AnalysisServices.Relationship
Public Function Insert (index As Integer, id As String) As Relationship

Parameters

index
Int32

The zero-based index at which the new Relationship is inserted.

id
String

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

Returns

The newly created Relationship.

Applies to