語言

ShortCircuitAttribute 類別

定義

縮短端點的電路。 端點的執行會在 UseRouting 中介軟體中進行。

[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
繼承
ShortCircuitAttribute
屬性
實作

建構函式

名稱 Description
ShortCircuitAttribute()

構造一個 的 ShortCircuitAttribute實例。

ShortCircuitAttribute(Int32)

構造一個 的 ShortCircuitAttribute實例。

屬性

名稱 Description
StatusCode

回覆中要設定的狀態碼。

適用於