Freigeben über


HttpHandlersSection.Handlers Eigenschaft

Definition

Ruft die HttpHandlerActionCollection Auflistung von HttpHandlerAction Objekten ab, die im HttpHandlersSection Objekt enthalten sind.

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

Eigenschaftswert

Ein HttpHandlerActionCollection Objekt, das die HttpHandlerAction Objekte oder Handler enthält.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie Sie auf die HttpHandlerAction Handler zugreifen.

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

Hinweise

Die Handlers von dieser Methode zurückgegebene Eigenschaftsauflistung verweist nicht auf ein tatsächliches Element in der zugrunde liegenden Konfigurationsdatei. Es handelt sich um ein System.Web.Configuration Konstrukt, das einfachen Zugriff auf die darin enthaltenen Handler ermöglicht. Dies ist ein gängiges Muster für die Behandlung der Elemente einer Konfigurationsdatei.

Gilt für:

Weitere Informationen