BasicProfileViolationCollection.Contains(BasicProfileViolation) 方法

定义

检查集合中是否包含指定的 BasicProfileViolation 对象。

public:
 bool Contains(System::Web::Services::Description::BasicProfileViolation ^ violation);
public bool Contains (System.Web.Services.Description.BasicProfileViolation violation);
member this.Contains : System.Web.Services.Description.BasicProfileViolation -> bool
Public Function Contains (violation As BasicProfileViolation) As Boolean

参数

violation
BasicProfileViolation

要在集合中定位的 BasicProfileViolation 对象。

返回

如果集合中存在 BasicProfileViolation 对象,则为 true;否则为 false

适用于