HttpModuleCollection.Get 方法

定義

IHttpModule 傳回個別 HttpModuleCollection 物件。Returns an individual IHttpModule object from the HttpModuleCollection.

多載

Get(Int32)

以指定索引從 IHttpModule 傳回 HttpModuleCollection 物件。Returns the IHttpModule object with the specified index from the HttpModuleCollection.

Get(String)

以指定名稱從 IHttpModule 傳回 HttpModuleCollection 物件。Returns the IHttpModule object with the specified name from the HttpModuleCollection.

Get(Int32)

以指定索引從 IHttpModule 傳回 HttpModuleCollection 物件。Returns the IHttpModule object with the specified index from the HttpModuleCollection.

public:
 System::Web::IHttpModule ^ Get(int index);
public System.Web.IHttpModule Get (int index);
member this.Get : int -> System.Web.IHttpModule
Public Function Get (index As Integer) As IHttpModule

參數

index
Int32

要從集合中傳回的 IHttpModule 物件的索引。The index of the IHttpModule object to return from the collection.

傳回

IHttpModule

index 參數所指定的 IHttpModule 成員。The IHttpModule member specified by the index parameter.

適用於

Get(String)

以指定名稱從 IHttpModule 傳回 HttpModuleCollection 物件。Returns the IHttpModule object with the specified name from the HttpModuleCollection.

public:
 System::Web::IHttpModule ^ Get(System::String ^ name);
public System.Web.IHttpModule Get (string name);
member this.Get : string -> System.Web.IHttpModule
Public Function Get (name As String) As IHttpModule

參數

name
String

要擷取的項目之索引鍵。The key of the item to be retrieved.

傳回

IHttpModule

name 參數所指定的 IHttpModule 成員。The IHttpModule member specified by the name parameter.

適用於