SPHttpHeaderThrottleClassifier Constructor (String, SPRequestThrottleLevel)
Initializes a new instance of the SPHttpHeaderThrottleClassifier class for the specified header and with the specified throttle level.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
header As String, _
level As SPRequestThrottleLevel _
)
'Usage
Dim header As String
Dim level As SPRequestThrottleLevel
Dim instance As New SPHttpHeaderThrottleClassifier(header, _
level)
public SPHttpHeaderThrottleClassifier(
string header,
SPRequestThrottleLevel level
)
Parameters
header
Type: System.StringThe header name.
level
Type: Microsoft.SharePoint.Utilities.SPRequestThrottleLevelA throttle level.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | header is a null reference (Nothing in Visual Basic). |
Remarks
Use this constructor when you want to configure throttling for all requests that have the specified header, even if the value of the header is a null reference (Nothing in Visual Basic) or empty.
See Also
Reference
SPHttpHeaderThrottleClassifier Class
SPHttpHeaderThrottleClassifier Members