I am using the System.Web.Administration assembly.
Using this I am able to create websites with applications and virtual directories. And the applications are able to have virtual directories.
But there doesn't seem to be an exposed way to create an application inside of an existing application.
A Site has an ApplicationCollection called Applications, but an Application does not (it only has a VirtualDirectoryCollection.
This seems odd to me, as it is indeed possible to create applications inside applications, at least in IIS 8.
For instance, say I wish to produce the following in IIS:
-> Sites
-> mycompany.com
-> MyApplication
-> SubApplication
-> SubApplication2
-> VirtualDirectory1
Graphically speaking:

Is there a way of doing this using the System.Web.Administration framework, or do I have to go down some other deep, dark path?