Method ZeroMemory ZeroMemory() Clears the allocated memory to zero. Declaration public void ZeroMemory()