ProfileSettingsCollection.IndexOf Method (String)
.NET Framework (current version)
Returns the index of the specified ProfileSettings object.
Assembly: System.Web (in System.Web.dll)
Parameters
- name
-
Type:
System.String
The name of a ProfileSettings object in the collection.
Return Value
Type: System.Int32The index of the specified ProfileSettings object, or -1 if the object is not found in the collection.
The following code example shows how to use the IndexOf method. This code example is part of a larger example provided for the HealthMonitoringSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: