RelationshipCollection.Add 方法

定义

重载

Add(Relationship)

将指定 Relationship 添加到此集合。

Add(String)

创建、添加到集合中,并返回新的 Relationship。

Add(Relationship)

将指定 Relationship 添加到此集合。

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

参数

item
Relationship

要添加到此集合的 Relationship。

返回

添加了项的集合中的从零开始的索引。

适用于

Add(String)

创建、添加到集合中,并返回新的 Relationship。

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

参数

id
String

新 Relationship 的 ID(需要在此集合中是唯一的)。

返回

新创建的 Relationship。

适用于