ConnectionStringSettingsCollection::IndexOf Method (ConnectionStringSettings^)

 

Returns the collection index of the passed ConnectionStringSettings object.

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

public:
int IndexOf(
	ConnectionStringSettings^ settings
)

Parameters

settings
Type: System.Configuration::ConnectionStringSettings^

A ConnectionStringSettings object in the collection.

Return Value

Type: System::Int32

The collection index of the specified ConnectionStringSettingsCollection object.

The following example shows how to get the index of the specified ConnectionStringSettings object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: