Compartilhar via


SPHttpThrottleSettings.GetHttpThrottleSettings method

Obtém o filho configurações de solicitação HTTP do objeto especificado.

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

Syntax

'Declaração
Public Shared Function GetHttpThrottleSettings ( _
    parent As SPPersistedObject _
) As SPHttpThrottleSettings
'Uso
Dim parent As SPPersistedObject
Dim returnValue As SPHttpThrottleSettings

returnValue = SPHttpThrottleSettings.GetHttpThrottleSettings(parent)
public static SPHttpThrottleSettings GetHttpThrottleSettings(
    SPPersistedObject parent
)

Parâmetros

Valor retornado

Type: Microsoft.SharePoint.Utilities.SPHttpThrottleSettings
Um objeto que contém a solicitação HTTP configurações de parentde otimização. Isso pode ser a null reference (Nothing in Visual Basic).

Comentários

Se parent for o aplicativo Web da Administração Central, o valor é a null reference (Nothing in Visual Basic).

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);
Dim webApplicationUri As New Uri("Http://localhost/")
Dim webApplication As SPWebApplication = SPWebApplication.Lookup(webApplicationUri)
Dim throttleSettings As SPHttpThrottleSettings = SPHttpThrottleSettings.GetHttpThrottleSettings(webApplication)

Ver também

Referência

SPHttpThrottleSettings class

SPHttpThrottleSettings members

Microsoft.SharePoint.Utilities namespace