Sprache

ShortCircuitAttribute Klasse

Definition

Kurzschluss des Endpunkts(n). Die Ausführung des Endpunkts erfolgt in der UseRouting-Middleware.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class ShortCircuitAttribute : Attribute, Microsoft.AspNetCore.Routing.IShortCircuitMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type ShortCircuitAttribute = class
    inherit Attribute
    interface IShortCircuitMetadata
Public NotInheritable Class ShortCircuitAttribute
Inherits Attribute
Implements IShortCircuitMetadata
Vererbung
ShortCircuitAttribute
Attribute
Implementiert

Konstruktoren

Name Beschreibung
ShortCircuitAttribute()

Erstellt eine Instanz von ShortCircuitAttribute.

ShortCircuitAttribute(Int32)

Erstellt eine Instanz von ShortCircuitAttribute.

Eigenschaften

Name Beschreibung
StatusCode

Der Statuscode, der in der Antwort festgelegt werden soll.

Gilt für: