System.Web.Configuration.HttpHandlerActionCollection.Remove Method

Removes an System.Web.Configuration.HttpHandlerAction object with the specified HttpHandlerAction.Verb and HttpHandlerAction.Path properties from the collection.

Syntax

public void Remove (string verb, string path)

Parameters

verb
The HttpHandlerAction.Verb property value that belongs to the handler to remove.
path
The HttpHandlerAction.Path property value that belongs to the handler to remove.

Remarks

This method inserts a remove element into the appropriate section of the configuration file for any element defined in a higher-level configuration file. If the element is defined in the appropriate section of the current configuration file, its entry is removed from the configuration file. The object to remove must exist in the collection.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0