Share via


HttpModuleCollection.Item[] 属性

定义

IHttpModule 获取指定的 HttpModuleCollection 对象。

重载

Item[Int32]

HttpModuleCollection 中获取具有指定数字索引的 IHttpModule 对象。

Item[String]

HttpModuleCollection 获取具有指定名称的 IHttpModule 对象。

Item[Int32]

HttpModuleCollection 中获取具有指定数字索引的 IHttpModule 对象。

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

参数

index
Int32

要从集合中检索的 IHttpModule 对象的索引。

属性值

index 参数指定的 IHttpModule 对象模块。

适用于

Item[String]

HttpModuleCollection 获取具有指定名称的 IHttpModule 对象。

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

参数

name
String

要检索的项的键。

属性值

name 参数指定的 IHttpModule 对象模块。

适用于