Get Directory and Files in an IsolatedStorageFile : IsolatedStorageFile « Stream File « VB.Net Tutorial






Imports System.IO.IsolatedStorage

Public Class Tester
    Public Shared Sub Main
        Dim strFile As String
        Dim strDir As String

        Dim myIsoStore As IsolatedStorageFile

        Try
            For Each strDir In myIsoStore.GetDirectoryNames("*")
                Console.WriteLine(strDir)
                For Each strFile In myIsoStore.GetFileNames(strDir + "/*.*")
                    Console.WriteLine(strFile)
                Next
            Next
        Catch ex As IsolatedStorageException
            Console.WriteLine(ex.Message)
        End Try

    End Sub
End Class








13.28.IsolatedStorageFile
13.28.1.Create IsolatedStorageFileStream
13.28.2.Create IsolatedStorageFile
13.28.3.Get Directory and Files in an IsolatedStorageFile
13.28.4.Use IsolatedStorageFile.DeleteFile, DeleteDirectory