BufferModesCollection.Item[] Property

Definition

Gets a BufferModeSettings object.

Overloads

Item[Int32]

Gets the BufferModeSettings object with the specified numeric index in the collection.

Item[String]

Gets the BufferModeSettings object based on the specified key in the collection.

Item[Int32]

Gets the BufferModeSettings object with the specified numeric index in the collection.

public:
 property System::Web::Configuration::BufferModeSettings ^ default[int] { System::Web::Configuration::BufferModeSettings ^ get(int index); void set(int index, System::Web::Configuration::BufferModeSettings ^ value); };
public System.Web.Configuration.BufferModeSettings this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.BufferModeSettings with get, set
Default Public Property Item(index As Integer) As BufferModeSettings

Parameters

index
Int32

A valid index of a BufferModeSettings object in the collection.

Property Value

The BufferModeSettings object at the specified index.

Examples

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.

bufferModeSetting = healthMonitoringSection.BufferModes[i];
bufferModeSetting = healthMonitoringSection.BufferModes(i)

See also

Applies to

Item[String]

Gets the BufferModeSettings object based on the specified key in the collection.

public:
 property System::Web::Configuration::BufferModeSettings ^ default[System::String ^] { System::Web::Configuration::BufferModeSettings ^ get(System::String ^ key); };
public System.Web.Configuration.BufferModeSettings this[string key] { get; }
member this.Item(string) : System.Web.Configuration.BufferModeSettings
Default Public ReadOnly Property Item(key As String) As BufferModeSettings

Parameters

key
String

The name of the BufferModeSettings object contained in the collection.

Property Value

A BufferModeSettings object.

Applies to