HttpHandlersSection.Handlers Property

 

Gets the HttpHandlerActionCollection collection of HttpHandlerAction objects contained by the HttpHandlersSection object.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("", IsDefaultCollection = true)]
public HttpHandlerActionCollection Handlers { get; }

Property Value

Type: System.Web.Configuration.HttpHandlerActionCollection

An HttpHandlerActionCollection that contains the HttpHandlerAction objects, or handlers.

The Handlers property collection returned by this method does not refer to any actual element in the underlying configuration file. It is a System.Web.Configuration construct that allows easy access to the handlers it contains. This is a common pattern for handling the elements of a configuration file.

The following code example shows how to access the HttpHandlerAction handlers.

// Get a HttpHandlerAction in the Handlers property HttpHandlerAction collection.
HttpHandlerAction httpHandler = httpHandlers[0];

.NET Framework
Available since 2.0
Return to top
Show: