다음을 통해 공유


SPHttpThrottleSettings.NumberOfSamples Property

Gets or sets the number of times the performance monitoring infrastructure tests performance before calculating a health score.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property NumberOfSamples As Integer
    Get
    Set
'Usage
Dim instance As SPHttpThrottleSettings
Dim value As Integer

value = instance.NumberOfSamples

instance.NumberOfSamples = value
public int NumberOfSamples { get; set; }

Property Value

Type: System.Int32
The number of performance tests that are used to calculate the score. The default is 12.

Exceptions

Exception Condition
ArgumentOutOfRangeException

An attempt is made to set the property to less than 1.

Remarks

If NumberOfSamples and RefreshInterval are at their default values, the infrastructure bases its score on a minute’s worth of samples: 12 samples taken at 5 second intervals.

See Also

Reference

SPHttpThrottleSettings Class

SPHttpThrottleSettings Members

Microsoft.SharePoint.Utilities Namespace