HttpHandlersSection.Handlers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.