HttpHandlersSection.Handlers Egenskap

Definition

Hämtar samlingen HttpHandlerActionCollection av HttpHandlerAction objekt som ingår i HttpHandlersSection objektet.

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

Egenskapsvärde

En HttpHandlerActionCollection som innehåller objekten HttpHandlerAction eller hanterarna.

Attribut

Exempel

Följande kodexempel visar hur du kommer åt hanterarna HttpHandlerAction .

// 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)

Kommentarer

Egenskapssamlingen Handlers som returneras av den här metoden refererar inte till något faktiskt element i den underliggande konfigurationsfilen. Det är en System.Web.Configuration konstruktion som ger enkel åtkomst till de hanterare som den innehåller. Det här är ett vanligt mönster för hantering av elementen i en konfigurationsfil.

Gäller för

Se även