EnableRateLimitingAttribute 類別

定義

提供端點特定要求速率限制的中繼資料。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class EnableRateLimitingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type EnableRateLimitingAttribute = class
    inherit Attribute
Public NotInheritable Class EnableRateLimitingAttribute
Inherits Attribute
繼承
EnableRateLimitingAttribute
屬性

備註

取代目前套用至端點的任何原則。 全域限制器仍會在套用此屬性的端點上執行。

建構函式

EnableRateLimitingAttribute(String)

使用指定的原則建立 的新實例 EnableRateLimitingAttribute

屬性

PolicyName

需要套用的原則名稱。

適用於