AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Manages asynchronous access to a lock.
C++
public: where TResource : classvalue class AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceAwaiter : System::Runtime::CompilerServices::INotifyCompletion
C++
public: where TResource : classvalue class AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
[System.Diagnostics.DebuggerDisplay("{awaiter.kind}")]
public struct AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TResource : class
[System.Diagnostics.DebuggerDisplay("{awaiter.kind}")]
public struct AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TResource : class
[System.Diagnostics.DebuggerDisplay("{awaiter.kind}")]
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TResource : class
[<System.Diagnostics.DebuggerDisplay("{awaiter.kind}")>]
type AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceAwaiter = struct
interface INotifyCompletion
[<System.Diagnostics.DebuggerDisplay("{awaiter.kind}")>]
type AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceAwaiter = struct
interface ICriticalNotifyCompletion
interface INotifyCompletion
[<System.Diagnostics.DebuggerDisplay("{awaiter.kind}")>]
[<System.Runtime.CompilerServices.IsReadOnly>]
type AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceAwaiter = struct
interface ICriticalNotifyCompletion
interface INotifyCompletion
Public Structure AsyncReaderWriterResourceLock(Of TMoniker, TResource).ResourceAwaiter
Implements INotifyCompletion
Public Structure AsyncReaderWriterResourceLock(Of TMoniker, TResource).ResourceAwaiter
Implements ICriticalNotifyCompletion
- TMoniker
- TResource
- Inheritance
-
AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter
- Attributes
- Implements
Is |
Gets a value indicating whether the lock has been issued. |
Get |
Applies the issued lock to the caller and returns the value used to release the lock. |
On |
Sets the delegate to execute when the lock is available. |
Unsafe |
Sets the delegate to execute when the lock is available. |
Produkt | Verzie |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |
This type is thread-safe for all members.