RequestTimeoutAttribute 類別

定義

提供端點特定要求逾時的中繼資料。

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

備註

套用此屬性時,將會忽略預設原則。

建構函式

名稱 Description
RequestTimeoutAttribute(Int32)

使用指定的逾時建立 的新實例 RequestTimeoutAttribute

RequestTimeoutAttribute(String)

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

屬性

名稱 Description
PolicyName

需要套用的原則名稱。 這個值不區分大小寫。

Timeout

要套用至此端點的逾時。

適用於