Contains

Contains(IBehaviorProperty)

确定 ICollection 是否包含特定值。

public bool Contains(IBehaviorProperty item)
参数类型描述
itemIBehaviorProperty要在 ICollection 中定位的属性。

返回值

如果在 ICollection 中找到 item,则为 true;否则为 false。

另见


Contains(string)

确定 ICollection 是否包含特定值。

public bool Contains(string propertyValue)
参数类型描述
propertyValueString要在 ICollection 中定位的属性值。

返回值

如果在 ICollection 中找到 propertyValue,则为 true;否则为 false。

另见