DataRelationCollection.Contains(String) 方法

定义

验证集合中是否存在具有特定名称(不区分大小写)的 DataRelationVerifies whether a DataRelation with the specific name (case insensitive) exists in the collection.

public:
 virtual bool Contains(System::String ^ name);
public virtual bool Contains (string? name);
public virtual bool Contains (string name);
abstract member Contains : string -> bool
override this.Contains : string -> bool
Public Overridable Function Contains (name As String) As Boolean

参数

name
String

要查找的关系的名称。The name of the relation to find.

返回

Boolean

如果存在具有指定名称的关系,则为 true;否则为 falsetrue, if a relation with the specified name exists; otherwise false.

适用于