Share via


SchemeSettingElementCollection.Item[] 属性

定义

访问 SchemeSettingElementCollection 类中的实例。

重载

Item[Int32]

获取 SchemeSettingElementCollection 集合中指定索引处的项。

Item[String]

获取 SchemeSettingElementCollection 集合中的项。

Item[Int32]

Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs

获取 SchemeSettingElementCollection 集合中指定索引处的项。

public:
 property System::Configuration::SchemeSettingElement ^ default[int] { System::Configuration::SchemeSettingElement ^ get(int index); };
public System.Configuration.SchemeSettingElement this[int index] { get; }
member this.Item(int) : System.Configuration.SchemeSettingElement
Default Public ReadOnly Property Item(index As Integer) As SchemeSettingElement

参数

index
Int32

要返回的 SchemeSettingElement 的索引。

属性值

指定的 SchemeSettingElement

例外

index 参数小于零。

- 或 -

由参数指定的项为 null 或已移除。

注解

Item[]使用 属性获取或设置此类SchemeSettingElementCollection中包含的指定SchemeSettingElement对象。

另请参阅

适用于

Item[String]

Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs
Source:
SchemeSettingElementCollection.cs

获取 SchemeSettingElementCollection 集合中的项。

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

参数

name
String

引用集合中 SchemeSettingElement 对象的字符串。

属性值

集合中包含的 SchemeSettingElement 对象。

注解

如果找不到项或已被移除,则返回值为 null

另请参阅

适用于