ProfileSettingsCollection.Item Property (Int32)

 

Gets or sets the ProfileSettings object at the specified numeric index in the collection.

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

public ProfileSettings this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

The index of a ProfileSettings object in the collection.

Property Value

Type: System.Web.Configuration.ProfileSettings

The ProfileSettings object at the specified index, or null if there is no object at that index.

The following code example shows how to use the Item method. This code example is part of a larger example provided for the HealthMonitoringSection class.

profileSetting = healthMonitoringSection.Profiles[i];

.NET Framework
Available since 2.0
Return to top
Show: