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
application
Type: Microsoft.SharePoint.Administration.SPWebApplicationThe Web application whose request throttle settings are reset.
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.