Locking user account via API .net

Is there a way to lock user accounts using methods in .net API? I have only found methods to archive/un-archive.
Thank you.