PropertyCollection.Contains(String) 方法

定义

确定指定属性是否在该集合中。Determines whether the specified property is in this collection.

public:
 bool Contains(System::String ^ propertyName);
public bool Contains (string propertyName);
member this.Contains : string -> bool
Public Function Contains (propertyName As String) As Boolean

参数

propertyName
String

要查找的属性的名称。The name of the property to find.

返回

Boolean

如果指定的属性属于该集合,则返回值为 true;否则为 falseThe return value is true if the specified property belongs to this collection; otherwise, false.

适用于