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.
Gets the child HTTP request throttle settings of the specified object.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GetHttpThrottleSettings ( _
parent As SPPersistedObject _
) As SPHttpThrottleSettings
'Usage
Dim parent As SPPersistedObject
Dim returnValue As SPHttpThrottleSettings
returnValue = SPHttpThrottleSettings.GetHttpThrottleSettings(parent)
public static SPHttpThrottleSettings GetHttpThrottleSettings(
SPPersistedObject parent
)
Parameters
parent
Type: Microsoft.SharePoint.Administration.SPPersistedObjectThe object whose settings are returned.
Return Value
Type: Microsoft.SharePoint.Utilities.SPHttpThrottleSettings
An object that contains the HTTP request throttling settings of parent. This can be a null reference (Nothing in Visual Basic).
Remarks
If parent is the Central Administration Web application, the value is a null reference (Nothing in Visual Basic).
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);
Dim webApplicationUri As New Uri("Http://localhost/")
Dim webApplication As SPWebApplication = SPWebApplication.Lookup(webApplicationUri)
Dim throttleSettings As SPHttpThrottleSettings = SPHttpThrottleSettings.GetHttpThrottleSettings(webApplication)