DataRelationCollection.CanRemove(DataRelation) 方法

定义

验证是否可以将指定的 DataRelation 从集合中移除。Verifies whether the specified DataRelation can be removed from the collection.

public:
 virtual bool CanRemove(System::Data::DataRelation ^ relation);
public virtual bool CanRemove (System.Data.DataRelation? relation);
public virtual bool CanRemove (System.Data.DataRelation relation);
abstract member CanRemove : System.Data.DataRelation -> bool
override this.CanRemove : System.Data.DataRelation -> bool
Public Overridable Function CanRemove (relation As DataRelation) As Boolean

参数

relation
DataRelation

要对其执行检查的关系。The relation to perform the check against.

返回

Boolean

如果可以移除 DataRelation,则为 true;否则为 falsetrue if the DataRelation can be removed; otherwise, false.

适用于