BasicProfileViolationCollection.IndexOf(BasicProfileViolation) Yöntem

Tanım

Koleksiyonda belirtilen BasicProfileViolation bir öğesinin sıfır tabanlı dizinini döndürür.

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

Parametreler

violation
BasicProfileViolation

BasicProfileViolation Koleksiyonda bulmak için.

Döndürülenler

Belirtilen BasicProfileViolationöğesinin sıfır tabanlı dizini veya öğe koleksiyonda bulunamadıysa -1.

Şunlara uygulanır