Contains
Contains(IBehaviorProperty)
确定 ICollection 是否包含特定值。
public bool Contains(IBehaviorProperty item)
| 参数 | 类型 | 描述 |
|---|---|---|
| item | IBehaviorProperty | 要在 ICollection 中定位的属性。 |
返回值
如果在 ICollection 中找到 item,则为 true;否则为 false。
另见
Contains(string)
确定 ICollection 是否包含特定值。
public bool Contains(string propertyValue)
| 参数 | 类型 | 描述 |
|---|---|---|
| propertyValue | String | 要在 ICollection 中定位的属性值。 |
返回值
如果在 ICollection 中找到 propertyValue,则为 true;否则为 false。