Share via


BasicProfileViolationCollection.IndexOf(BasicProfileViolation) 方法

定義

傳回集合中指定 BasicProfileViolation 的以零起始的索引。

public:
 int IndexOf(System::Web::Services::Description::BasicProfileViolation ^ violation);
public int IndexOf (System.Web.Services.Description.BasicProfileViolation violation);
member this.IndexOf : System.Web.Services.Description.BasicProfileViolation -> int
Public Function IndexOf (violation As BasicProfileViolation) As Integer

參數

violation
BasicProfileViolation

要在集合中尋找的 BasicProfileViolation

傳回

Int32

指定 BasicProfileViolation 的以零起始的索引;如果在集合中找不到此項目,則為 -1。

適用於