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.StringThe file extension, such as .aspx and .html, including the leading “.” character.
level
Type: Microsoft.SharePoint.Utilities.SPRequestThrottleLevelThe throttle level.
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