LowMemoryNotificationContext Constructor
Namespace: DevCase.Core.IO.MemoryAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public LowMemoryNotificationContext(
ulong minimum,
Action action,
int period = 1000
)
Public Sub New (
minimum As ULong,
action As Action,
Optional period As Integer = 1000
)
Dim minimum As ULong
Dim action As Action
Dim period As Integer
Dim instance As New LowMemoryNotificationContext(minimum,
action, period)
public:
LowMemoryNotificationContext(
unsigned long long minimum,
Action^ action,
int period = 1000
)
new :
minimum : uint64 *
action : Action *
?period : int
(* Defaults:
let _period = defaultArg period 1000
*)
-> LowMemoryNotificationContext
No code example is currently available or this language may not be supported.
Parameters
- minimum UInt64
-
The minimum required memory, in bytes.
If the total amount of free physical memory for the computer is lower than this value,
the Action specified in action parameter will be invoked once.
- action Action
-
The Action to invoke once if a low-memory notification occurs.
- period Int32 (Optional)
-
The time interval, in milliseconds, used to periodically check the total amount of free physical memory for the computer.
Default value is 1000 (1 second).