String.IsNullOrEmpty : String « System « VB.Net by API






String.IsNullOrEmpty

  

Option Strict On

Imports System.Collections.ObjectModel
Imports System.IO

Public Module FileSystem
   Public Sub Main()
      Dim dirPath As String = "c:\\"

      If String.IsNullOrEmpty(dirPath) Then Exit Sub
      If Not Directory.Exists(dirPath) Then Exit Sub
      
      Dim dirs As ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetDirectories(dirPath)
      For Each dir As String In dirs
         Dim dirInfo As DirectoryInfo = New DirectoryInfo(dir)
         Console.WriteLine("{0} : Created {1}", dirinfo.Name,dirInfo.CreationTime)
      Next
   End Sub
End Module

   
    
  








Related examples in the same category

1.String.Compare
2.String.Concat
3.String.Copy
4.String.Empty
5.String.Equals
6.String.Format
7.String.GetEnumerator
8.String.GetHashCode()
9.String.IndexOf(String substring)
10.String.IndexOfAny(String sub)
11.String.IndexOfAny(String sub, Int count)
12.String.Insert
13.String.LastIndexOf
14.String.PadLeft(Int length)
15.String.PadLeft(Int length, String char)
16.String.Replace
17.String.Split
18.String.StartsWith
19.String.Substring(Int begin)
20.String.Substring(Int begin, Int end)
21.String.ToCharArray()
22.String.ToLower()
23.String.ToUpper()