DeclaredTypeElementCollection::IndexOf Method (DeclaredTypeElement^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns the position of the specified configuration element.

Namespace:   System.Runtime.Serialization.Configuration
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public:
int IndexOf(
	DeclaredTypeElement^ element
)

Parameters

element
Type: System.Runtime.Serialization.Configuration::DeclaredTypeElement^

The element to find in the collection.

Return Value

Type: System::Int32

The index of the specified configuration element; otherwise, -1.

Exception Condition
ArgumentNullException

The element argument is null.

.NET Framework
Available since 3.0
Return to top
Show: