Share via


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)

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