DispatchSource.MemoryPressure 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 以使用默认目标队列 (默认优先级全局并发队列) 。