IsLockedAsync Method IsLockedAsync(LockContext) Determines whether this lock is held by any context or not. Declaration Task<bool> IsLockedAsync(LockContext lockContext) Parameters LockContext lockContext Returns Task<bool> true if the lock is held by any context; otherwise false.