AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceReleaser Structure
Microsoft internal only. A value whose disposal releases a held lock.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Structure ResourceReleaser _
Implements IDisposable
public struct ResourceReleaser : IDisposable
public value class ResourceReleaser : IDisposable
[<Sealed>]
type ResourceReleaser =
struct
interface IDisposable
end
JScript supports the use of structures, but not the declaration of new ones.
The AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceReleaser generic type exposes the following members.
Methods
Name | Description | |
---|---|---|
Dispose | Microsoft internal only. Releases the lock. | |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetResourceAsync | Microsoft internal only. Gets the lock-protected resource. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ReleaseAsync | Microsoft internal only. Asynchronously releases the lock. Dispose should still be called after this. | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.