Name
SyncLock Statement
Synopsis
SyncLockexpression
...[code
] End SyncLock
expression
required; any reference type (class, module, interface, array, or delegate)An expression yielding a single result that can be used to determine the accessibility of
code
code
optionalThe code statements to which access is synchronized and that will be executed sequentially
Description
Prevents multiple threads of execution in the same process from accessing shared data or resources at the same time
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.