Freigeben über


DispatchSource.MemoryPressure Konstruktoren

Definition

Ü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.

Hinweise

Gilt für:

DispatchSource.MemoryPressure(IntPtr, Boolean)

public MemoryPressure (IntPtr handle, bool owns);
new CoreFoundation.DispatchSource.MemoryPressure : nativeint * bool -> CoreFoundation.DispatchSource.MemoryPressure

Parameter

handle
IntPtr

nativeint

owns
Boolean

Gilt für: