SPHttpThrottleSettings.ResetToDefaultSettings Method

Resets the HTTP request throttle settings for a specified Web application to the default settings.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Sub ResetToDefaultSettings ( _
    application As SPWebApplication _
)
'Usage
Dim application As SPWebApplicationSPHttpThrottleSettings.ResetToDefaultSettings(application)
public static void ResetToDefaultSettings(
    SPWebApplication application
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

If application. HttpThrottleSettings is a null reference (Nothing in Visual Basic), a SPHttpThrottleSettings object with default values is assigned to it.

ResetToDefaultSettings(SPWebApplication) does nothing if application is the Central Administration Web application.

See Also

Reference

SPHttpThrottleSettings Class

SPHttpThrottleSettings Members

Microsoft.SharePoint.Utilities Namespace