HttpHandlersSection.Handlers Property

Definition

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

[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.HttpHandlerActionCollection Handlers { get; }

Property Value

An HttpHandlerActionCollection that contains the HttpHandlerAction objects, or handlers.

Attributes

Examples

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

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

Remarks

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.

Applies to

Produkt Wersje
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also