다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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