Share via


BufferModesCollection.Item[] 属性

定义

获取一个 BufferModeSettings 对象。

重载

Item[Int32]

获取集合中具有指定数字索引的 BufferModeSettings 对象。

Item[String]

根据集合中的指定键获取 BufferModeSettings 对象。

Item[Int32]

获取集合中具有指定数字索引的 BufferModeSettings 对象。

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

参数

index
Int32

集合中 BufferModeSettings 对象的有效索引。

属性值

指定索引处的 BufferModeSettings 对象。

示例

下面的代码示例说明如何使用 Item[] 方法。 此代码示例是为 HealthMonitoringSection 类提供的一个更大示例的一部分。

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

另请参阅

适用于

Item[String]

根据集合中的指定键获取 BufferModeSettings 对象。

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

参数

key
String

集合中包含的 BufferModeSettings 对象的名称。

属性值

BufferModeSettings 对象。

适用于