Share via


SPHttpThrottleSettings.RemoveThrottleClassifierAt method

Removes the HTTP request classifier at the specified index from the ThrottleClassifiers collection.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub RemoveThrottleClassifierAt ( _
    index As Integer _
)
'Usage
Dim instance As SPHttpThrottleSettings
Dim index As Integer

instance.RemoveThrottleClassifierAt(index)
public void RemoveThrottleClassifierAt(
    int index
)

Parameters

  • index
    Type: System.Int32

    The zero-based index of the classifier that is removed.

Examples

The following sample code shows this method in use. For the full example, see How to: Create and Register or Deregister a Request Classifier.

Uri webApplicationUri = new Uri("Http://localhost/");
SPWebApplication webApplication = SPWebApplication.Lookup(webApplicationUri);
SPHttpThrottleSettings throttleSettings = SPHttpThrottleSettings.GetHttpThrottleSettings(webApplication);

throttleSettings.RemoveThrottleClassifierAt(throttleSettings.ThrottleClassifiers.Count - 1);   
Dim webApplicationUri As New Uri("Http://localhost/")
Dim webApplication As SPWebApplication = SPWebApplication.Lookup(webApplicationUri)
Dim throttleSettings As SPHttpThrottleSettings = SPHttpThrottleSettings.GetHttpThrottleSettings(webApplication)

throttleSettings.RemoveThrottleClassifierAt(throttleSettings.ThrottleClassifiers.Count - 1)

See also

Reference

SPHttpThrottleSettings class

SPHttpThrottleSettings members

Microsoft.SharePoint.Utilities namespace