共用方式為


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 否則。

適用於