ProtocolCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定的 ProtocolElement 集合项。
重载
| 名称 | 说明 |
|---|---|
| Item[Int32] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取 ProtocolElement 集合的指定索引处的对象。 |
| Item[String] |
此 API 支持产品基础结构,不能在代码中直接使用。 获取具有指定键的第一个条目的值。 |
注解
.NET Framework 3.5 中引入了 Item[]。 有关详细信息,请参阅 版本和依赖项。
Item[Int32]
获取 ProtocolElement 集合的指定索引处的对象。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
property System::Web::Configuration::ProtocolElement ^ default[int] { System::Web::Configuration::ProtocolElement ^ get(int index); void set(int index, System::Web::Configuration::ProtocolElement ^ value); };
public System.Web.Configuration.ProtocolElement this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.ProtocolElement with get, set
Default Public Property Item(index As Integer) As ProtocolElement
参数
- index
- Int32
实例中ProtocolElement对象的索引ProtocolCollection。
属性值
ProtocolElement 对象。
注解
.NET Framework 3.5 中引入了 Item[]。 有关详细信息,请参阅 版本和依赖项。
适用于
Item[String]
获取具有指定键的第一个条目的值。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
property System::Web::Configuration::ProtocolElement ^ default[System::String ^] { System::Web::Configuration::ProtocolElement ^ get(System::String ^ name); };
public System.Web.Configuration.ProtocolElement this[string name] { get; }
member this.Item(string) : System.Web.Configuration.ProtocolElement
Default Public ReadOnly Property Item(name As String) As ProtocolElement
参数
- name
- String
要获取的条目的键。
属性值
一个对象,表示具有指定键的第一 ProtocolElement 个项的值(如果找到);否则为 null。
注解
.NET Framework 3.5 中引入了 Item[]。 有关详细信息,请参阅 版本和依赖项。