HttpHandlersSection.Handlers Eigenschap

Definitie

Hiermee haalt u de HttpHandlerActionCollection verzameling objecten op die HttpHandlerAction zijn opgenomen in het 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

Waarde van eigenschap

Een HttpHandlerActionCollection met de HttpHandlerAction objecten of handlers.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u toegang hebt tot de 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)

Opmerkingen

De Handlers eigenschapverzameling die door deze methode wordt geretourneerd, verwijst niet naar een werkelijk element in het onderliggende configuratiebestand. Het is een System.Web.Configuration constructie die eenvoudige toegang biedt tot de handlers die deze bevat. Dit is een veelvoorkomend patroon voor het verwerken van de elementen van een configuratiebestand.

Van toepassing op

Zie ook