HttpModuleActionCollection.IndexOf(HttpModuleAction) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 HttpModuleAction 모듈의 컬렉션 인덱스입니다.
public:
int IndexOf(System::Web::Configuration::HttpModuleAction ^ action);
public int IndexOf(System.Web.Configuration.HttpModuleAction action);
member this.IndexOf : System.Web.Configuration.HttpModuleAction -> int
Public Function IndexOf (action As HttpModuleAction) As Integer
매개 변수
- action
- HttpModuleAction
HttpModuleAction 컬렉션 인덱스 가져오기 모듈입니다.
반품
지정된 모듈의 컬렉션 인덱스 값입니다.
예제
다음 예제에서는 모듈 컬렉션 인덱스 HttpModuleAction 가져오기 방법을 보여 있습니다.
// Set the module object.
HttpModuleAction ModuleAction1 =
new HttpModuleAction("MyModule1Name",
"MyModule1Type");
// Get the module collection index.
int moduleIndex = modulesCollection.IndexOf(ModuleAction1);
' Set the module object.
Dim ModuleAction1 _
As New HttpModuleAction( _
"MyModule1Name", "MyModule1Type")
' Get the module collection index.
Dim moduleIndex As Integer = _
modulesCollection.IndexOf(ModuleAction1)
설명
이 메서드를 사용하기 전에 적절한 이름 및 형식을 가진 HttpModuleAction 모듈을 식별해야 합니다. 그런 다음 이 모듈 개체를 사용하여 컬렉션 인덱스 가져오기를 수행할 수 있습니다.