共用方式為


AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter.GetResult Method

Definition

Applies the issued lock to the caller and returns the value used to release the lock.

public:
 Microsoft::VisualStudio::Threading::AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceReleaser GetResult();
public Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceReleaser GetResult ();
member this.GetResult : unit -> Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceReleaser
Public Function GetResult () As AsyncReaderWriterResourceLock(Of TMoniker, TResource).ResourceReleaser

Returns

The value to dispose of to release the lock.

Applies to