BasicProfileViolationCollection.IndexOf(BasicProfileViolation) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回集合中指定的从零开始的 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 查找的集合。
返回
指定 BasicProfileViolation从零开始的索引;如果未在集合中找到元素,则为 -1。