DataRelationCollection.Remove 方法

定義

從集合移除指定的關聯。

多載

Remove(DataRelation)

從集合移除指定的關聯。

Remove(String)

從集合移除具有指定名稱的關聯。

Remove(DataRelation)

來源:
DataRelationCollection.cs
來源:
DataRelationCollection.cs
來源:
DataRelationCollection.cs

從集合移除指定的關聯。

public:
 void Remove(System::Data::DataRelation ^ relation);
public void Remove (System.Data.DataRelation relation);
member this.Remove : System.Data.DataRelation -> unit
Public Sub Remove (relation As DataRelation)

參數

relation
DataRelation

要移除的關聯。

例外狀況

關聯為 null 值。

關聯不屬於集合。

備註

如果移除作業成功,就會 CollectionChanged 引發 事件。 請注意,移除關聯並不會移除任何相關聯的條件約束物件。

另請參閱

適用於

Remove(String)

來源:
DataRelationCollection.cs
來源:
DataRelationCollection.cs
來源:
DataRelationCollection.cs

從集合移除具有指定名稱的關聯。

public:
 void Remove(System::String ^ name);
public void Remove (string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)

參數

name
String

要移除的關聯名稱。

例外狀況

集合沒有包含具有指定名稱的關聯。

備註

如果移除作業成功,就會 CollectionChanged 引發 事件。

另請參閱

適用於