HttpHandlerActionCollection.Remove 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션에서 개체를 제거합니다 HttpHandlerAction .
오버로드
| Name | Description |
|---|---|
| Remove(HttpHandlerAction) |
컬렉션에서 개체를 제거합니다 HttpHandlerAction . |
| Remove(String, String) |
컬렉션에서 HttpHandlerAction 지정된 Verb 속성과 Path 속성을 가진 개체를 제거합니다. |
Remove(HttpHandlerAction)
컬렉션에서 개체를 제거합니다 HttpHandlerAction .
public:
void Remove(System::Web::Configuration::HttpHandlerAction ^ action);
public void Remove(System.Web.Configuration.HttpHandlerAction action);
member this.Remove : System.Web.Configuration.HttpHandlerAction -> unit
Public Sub Remove (action As HttpHandlerAction)
매개 변수
- action
- HttpHandlerAction
제거할 개체입니다 HttpHandlerAction .
예외
전달된 HttpHandlerAction 개체가 컬렉션에 없거나 요소가 이미 제거되었거나 컬렉션이 읽기 전용입니다.
예제
다음 코드 예제에서는 컬렉션에서 개체를 HttpHandlerAction 제거 하는 방법을 보여 있습니다.
// Remove a HttpHandlerAction object
HttpHandlerAction httpHandler3 = new HttpHandlerAction(
"Calculator.custom",
"Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler",
"GET", true);
httpHandlers.Remove(httpHandler3);
' Remove a HttpHandlerAction object
Dim httpHandler3 As System.Web.Configuration.HttpHandlerAction = new HttpHandlerAction( _
"Calculator.custom", _
"Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", _
"GET", _
true)
httpHandlers.Remove(httpHandler3)
설명
이 메서드는 remove 상위 수준 구성 파일에 정의된 모든 요소에 대한 구성 파일의 적절한 섹션에 요소를 삽입합니다. 요소가 현재 구성 파일의 적절한 섹션에 정의된 경우 해당 항목은 구성 파일에서 제거됩니다. 제거할 개체가 컬렉션에 있어야 합니다.
적용 대상
Remove(String, String)
컬렉션에서 HttpHandlerAction 지정된 Verb 속성과 Path 속성을 가진 개체를 제거합니다.
public:
void Remove(System::String ^ verb, System::String ^ path);
public void Remove(string verb, string path);
member this.Remove : string * string -> unit
Public Sub Remove (verb As String, path As String)
매개 변수
예외
컬렉션에 지정된 키를 가진 개체가 없거나 HttpHandlerAction 요소가 이미 제거되었거나 컬렉션이 읽기 전용입니다.
예제
다음 코드 예제에서는 컬렉션에서 개체를 HttpHandlerAction 제거 하는 방법을 보여 있습니다.
// Remove the handler with the specified verb and path.
httpHandlers.Remove("GET", "*.custom");
'Remove the handler with the specified verb and path.
httpHandlers.Remove("GET", "*.custom")
설명
이 메서드는 remove 상위 수준 구성 파일에 정의된 모든 요소에 대한 구성 파일의 적절한 섹션에 요소를 삽입합니다. 요소가 현재 구성 파일의 적절한 섹션에 정의된 경우 해당 항목은 구성 파일에서 제거됩니다. 제거할 개체가 컬렉션에 있어야 합니다.