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。

适用于