Share via


BasicProfileViolationCollection.IndexOf(BasicProfileViolation) メソッド

定義

コレクション内の指定した BasicProfileViolation の 0 から始まるインデックス番号を返します。

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 の 0 から始まるインデックス番号。コレクション内でその要素が見つからなかった場合は -1。

適用対象