共用方式為


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 物件。

傳回

Boolean

如果集合中有存在 BasicProfileViolation 物件,則為 true,否則為 false

適用於