Share via


SPHttpFileExtensionThrottleClassifier constructor (String, SPRequestThrottleLevel)

Initializes a new instance of the SPHttpFileExtensionThrottleClassifier class using a specified file extension and throttle level.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    extension As String, _
    level As SPRequestThrottleLevel _
)
'Usage
Dim extension As String
Dim level As SPRequestThrottleLevel

Dim instance As New SPHttpFileExtensionThrottleClassifier(extension, _
    level)
public SPHttpFileExtensionThrottleClassifier(
    string extension,
    SPRequestThrottleLevel level
)

Parameters

  • extension
    Type: System.String

    The file extension, such as .aspx and .html, including the leading “.” character.

Exceptions

Exception Condition
ArgumentException

The leading “.” character is missing from extension.

- or -

extension is a null reference (Nothing in Visual Basic).

See also

Reference

SPHttpFileExtensionThrottleClassifier class

SPHttpFileExtensionThrottleClassifier members

SPHttpFileExtensionThrottleClassifier overload

Microsoft.SharePoint.Utilities namespace