BasicProfileViolationCollection.IndexOf(BasicProfileViolation) BasicProfileViolationCollection.IndexOf(BasicProfileViolation) BasicProfileViolationCollection.IndexOf(BasicProfileViolation) BasicProfileViolationCollection.IndexOf(BasicProfileViolation) Method

Определение

Возвращает индекс (с нуля) заданного объекта BasicProfileViolation в коллекции.Returns the zero-based index of a specified BasicProfileViolation in the collection.

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 BasicProfileViolation

Параметр BasicProfileViolation для поиска в коллекции.The BasicProfileViolation to find in the collection.

Возвраты

Индекс (с нуля) заданного объекта BasicProfileViolation, либо значение -1, если не удалось обнаружить элемент в коллекции.The zero-based index of the specified BasicProfileViolation, or -1 if the element was not found in the collection.

Применяется к