共用方式為


DispatchSource.MemoryPressure 建構函式

定義

多載

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

參數

handle
IntPtr

nativeint

適用於

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

參數

monitorFlags
MemoryPressureFlags

要監視的記憶體壓力旗標。   預設只會監視記憶體壓力警告,並返回正常狀態。

queue
DispatchQueue

這個分派來源物件的目標佇列。   傳遞 null 以使用預設目標佇列, (預設優先順序全域並行佇列) 。

備註

適用於

DispatchSource.MemoryPressure(IntPtr, Boolean)

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

參數

handle
IntPtr

nativeint

owns
Boolean

適用於