Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the HTTP request classifier at the specified index from the ThrottleClassifiers collection.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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.Int32The 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)