DirectoryInfo.Root : DirectoryInfo « System.IO « VB.Net by API






DirectoryInfo.Root

  
 

Imports System.IO

Public Class Tester
    Public Shared Sub Main



        Dim myDirectoryInfo As DirectoryInfo

        myDirectoryInfo = New DirectoryInfo("c:\\Java_dev")
        Console.WriteLine(myDirectoryInfo.Exists)
        

        Console.WriteLine(myDirectoryInfo.Name)
        Console.WriteLine(myDirectoryInfo.Parent.ToString)
        Console.WriteLine(myDirectoryInfo.Root.ToString)

    End Sub

End Class

   
    
  








Related examples in the same category

1.New DirectoryInfo
2.DirectoryInfo.CreationTime
3.DirectoryInfo.FullName
4.DirectoryInfo.GetDirectories()
5.DirectoryInfo.GetDirectories(String filter)
6.DirectoryInfo.GetFiles
7.DirectoryInfo.LastAccessTime
8.DirectoryInfo.LastWriteTime