SPHttpHeaderThrottleClassifier 构造函数 (String, SPRequestThrottleLevel)
初始化指定的标头的指定的中止值等级与SPHttpHeaderThrottleClassifier类的一个新实例。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub New ( _
header As String, _
level As SPRequestThrottleLevel _
)
用法
Dim header As String
Dim level As SPRequestThrottleLevel
Dim instance As New SPHttpHeaderThrottleClassifier(header, _
level)
public SPHttpHeaderThrottleClassifier(
string header,
SPRequestThrottleLevel level
)
参数
header
类型:System.String标头名称。
level
类型:Microsoft.SharePoint.Utilities.SPRequestThrottleLevel一种限制级别。
异常
异常 | 条件 |
---|---|
ArgumentNullException | header是空引用(无 在 Visual Basic 中)。 |
备注
使用此构造函数,当您想要配置带宽限制为具有指定的标头的所有请求,即使标头的值是空引用(无 在 Visual Basic 中) ,或为空。
另请参阅
引用
SPHttpHeaderThrottleClassifier 类
SPHttpHeaderThrottleClassifier 成员