BufferModesCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对象 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 。