CpuStressAllocate Method
Allocates the specified average percentage of CPU usage for this instance.
Namespace: DevCase.Core.IO.Devices.HardwareStressAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual void Allocate(
float percentage
)
Public Overridable Sub Allocate (
percentage As Single
)
Dim instance As CpuStress
Dim percentage As Single
instance.Allocate(percentage)
public:
virtual void Allocate(
float percentage
)
abstract Allocate :
percentage : float32 -> unit
override Allocate :
percentage : float32 -> unit
No code example is currently available or this language may not be supported.
Parameters
- percentage Single
-
The average percentage of CPU usage to allocate, from 0.01% to 100%.
ArgumentException
|
Value greater than 0 is required.
|
ArgumentOutOfRangeException
|
Value must be in range of 0.01% to 100%.
|