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

适用于