Share via


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)

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

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

SPHttpHeaderThrottleClassifier overload

Microsoft.SharePoint.Utilities namespace