Compartilhar via


SPHttpThrottleSettings.RemoveThrottleClassifierAt method

Remove o classificador da solicitação de HTTP no índice especificado da coleção ThrottleClassifiers .

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

Syntax

'Declaração
Public Sub RemoveThrottleClassifierAt ( _
    index As Integer _
)
'Uso
Dim instance As SPHttpThrottleSettings
Dim index As Integer

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

Parâmetros

  • index
    Type: System.Int32

    O índice baseado em zero do classificador é removido.

Examples

O exemplo de código a seguir mostra esse método em uso. Para o exemplo completo, consulte 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)

Ver também

Referência

SPHttpThrottleSettings class

SPHttpThrottleSettings members

Microsoft.SharePoint.Utilities namespace