It's the name and the path property if the key is IIsWebVirtualDir - you can find more details here : http://msdn.microsoft.com/en-us/library/ms525389.aspx.
private static void Echo()
{
using (DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3svc/1/ROOT")) {
foreach (DirectoryEntry child in root.Children) {
Console.WriteLine("\n\n{0}", child.Name);
foreach (PropertyValueCollection pc in child.Properties) {
Console.Write("{0} : ", pc.PropertyName);
foreach (object v in pc) {
Console.Write("{0},", v);
}
Console.WriteLine();
}
}
}
}
HTH