ConnectionStringSettingsCollection::IndexOf Method (ConnectionStringSettings^)
.NET Framework (current version)
Returns the collection index of the passed ConnectionStringSettings object.
Assembly: System.Configuration (in System.Configuration.dll)
Parameters
- settings
-
Type:
System.Configuration::ConnectionStringSettings^
A ConnectionStringSettings object in the collection.
Return Value
Type: System::Int32The collection index of the specified ConnectionStringSettingsCollection object.
The following example shows how to get the index of the specified ConnectionStringSettings object.
.NET Framework
Available since 2.0
Available since 2.0
Show: