AsyncReaderWriterLock.LockStackContains 方法

定义

检查锁堆栈中所有锁的聚合标志是否满足指定的标志 () 。

protected:
 bool LockStackContains(Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockFlags flags, Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockHandle handle);
bool LockStackContains(Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockFlags flags, Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockHandle handle);
protected bool LockStackContains (Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockFlags flags, Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle handle);
member this.LockStackContains : Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockFlags * Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle -> bool
Protected Function LockStackContains (flags As AsyncReaderWriterLock.LockFlags, handle As AsyncReaderWriterLock.LockHandle) As Boolean

参数

flags
AsyncReaderWriterLock.LockFlags

标志 (必须为结果指定的 true) 。

handle
AsyncReaderWriterLock.LockHandle

要考虑的锁堆栈的头。

返回

true 如果在锁堆栈中的某个位置找到所有指定的标志,则为 ; false 否则。

适用于