Lock.Scope.Dispose Method
Definition
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.
Exits the lock if the Lock.Scope represents a lock that was entered.
public:
void Dispose();
public void Dispose ();
member this.Dispose : unit -> unit
Public Sub Dispose ()
Exceptions
The Lock.Scope represents a lock that was entered and the current thread does not hold the lock.
Remarks
If the current thread holds the lock multiple times, such as recursively, the lock is exited only once. The current thread should ensure that each EnterScope is matched with a Dispose on the Scope
returned by EnterScope
.
For more information, see the Remarks for Lock.Scope.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor