Edit

Share via


HttpHandlersSection.Handlers Property

Definition

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

public:
 property System::Web::Configuration::HttpHandlerActionCollection ^ Handlers { System::Web::Configuration::HttpHandlerActionCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.HttpHandlerActionCollection Handlers { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)>]
member this.Handlers : System.Web.Configuration.HttpHandlerActionCollection
Public ReadOnly Property Handlers As HttpHandlerActionCollection

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];
' Get a HttpHandlerAction in the Handlers property HttpHandlerAction collection.
Dim httpHandler As HttpHandlerAction = 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

See also