DispatchSource.MemoryPressure Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
DispatchSource.MemoryPressure(IntPtr) | |
DispatchSource.MemoryPressure(MemoryPressureFlags, DispatchQueue) | |
DispatchSource.MemoryPressure(IntPtr, Boolean) |
DispatchSource.MemoryPressure(IntPtr)
public MemoryPressure (IntPtr handle);
new CoreFoundation.DispatchSource.MemoryPressure : nativeint -> CoreFoundation.DispatchSource.MemoryPressure
Parameter
- handle
-
IntPtr
nativeint
Gilt für:
DispatchSource.MemoryPressure(MemoryPressureFlags, DispatchQueue)
public MemoryPressure (CoreFoundation.MemoryPressureFlags monitorFlags = CoreFoundation.MemoryPressureFlags.Normal | CoreFoundation.MemoryPressureFlags.Warn, CoreFoundation.DispatchQueue queue = null);
new CoreFoundation.DispatchSource.MemoryPressure : CoreFoundation.MemoryPressureFlags * CoreFoundation.DispatchQueue -> CoreFoundation.DispatchSource.MemoryPressure
Parameter
- monitorFlags
- MemoryPressureFlags
Zu überwachende Speicherdruckflags. Standardmäßig werden nur Warnungen zum Arbeitsspeicherdruck und die Rückkehr zur Normalität überwacht.
- queue
- DispatchQueue
Die Zielwarteschlange für dieses Dispatchquellobjekt. Übergeben Sie NULL, um die Standardzielwarteschlange (die globale standardmäßige globale gleichzeitige Warteschlange mit Priorität) zu verwenden.