Export (0) Print
Expand All

BasicProfileViolationCollection.IndexOf Method

Returns the zero-based index of a specified BasicProfileViolation in the collection.

Namespace:  System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public int IndexOf(
	BasicProfileViolation violation
)

Parameters

violation
Type: System.Web.Services.Description.BasicProfileViolation

The BasicProfileViolation to find in the collection.

Return Value

Type: System.Int32
The zero-based index of the specified BasicProfileViolation, or -1 if the element was not found in the collection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 3.5 SP1
Show:
© 2015 Microsoft