ReadOnlyMetadataCollection<T>.Contains(String) 方法

定义

确定集合中是否包含具有指定标识的项。Determines whether the collection contains an item with the specified identity.

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

参数

identity
String

项的标识。The identity of the item.

返回

Boolean

如果集合包含要搜索的项,则为 true;否则为 falsetrue if the collection contains the item to be searched for; otherwise, false. 默认值为 falseThe default is false.

适用于