SPHttpThrottleSettings.RemoveThrottleClassifierAt - Méthode
Supprime le classifieur de demande HTTP à l'index spécifié de la collection ThrottleClassifiers .
Espace de noms : Microsoft.SharePoint.Utilities
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Sub RemoveThrottleClassifierAt ( _
index As Integer _
)
'Utilisation
Dim instance As SPHttpThrottleSettings
Dim index As Integer
instance.RemoveThrottleClassifierAt(index)
public void RemoveThrottleClassifierAt(
int index
)
Paramètres
index
Type : System.Int32Index de base zéro du classifieur qui est supprimé.
Exemples
L'exemple de code suivant illustre cette méthode en cours d'utilisation. Pour obtenir l'exemple complet, consultez 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)