IsolatedStorageFileStream.DeleteFile : IsolatedStorageFileStream « System.IO.IsolatedStorage « VB.Net by API






IsolatedStorageFileStream.DeleteFile

  

Imports System.IO.IsolatedStorage

Public Class Tester
    Public Shared Sub Main

        Dim myIsoStore As IsolatedStorageFile

        Try
            myIsoStore.CreateDirectory("oldDir")

            Dim myIsoStroeStream As New IsolatedStorageFileStream("oldDir/oldFile", IO.FileMode.Create.Create, myIsoStore)
            myIsoStroeStream.Close()
        
        
           myIsoStore.DeleteDirectory("oldDir")
           myIsoStore.DeleteFile("oldeDir/oldFile")
        Catch ex As IsolatedStorageException
            Console.WriteLine(ex.Message)
        End Try


    End Sub
End Class

   
    
  








Related examples in the same category

1.New IsolatedStorageFileStream
2.IsolatedStorageFileStream.CreateDirectory
3.IsolatedStorageFileStream.DeleteDirectory