FileInfo.IsReadOnly : FileInfo « System.IO « VB.Net by API






FileInfo.IsReadOnly

  
Public Class Tester
    Public Shared Sub Main
    
        Dim fileDetail As IO.FileInfo = My.Computer.FileSystem.GetFileInfo("test.txt")
        Console.WriteLine(fileDetail.IsReadOnly)
        Console.WriteLine(CBool(fileDetail.Attributes And IO.FileAttributes.Hidden))
    End Sub

End Class

   
    
  








Related examples in the same category

1.FileInfo.CreationTime
2.FileInfo.Extension
3.FileInfo.FullName
4.FileInfo.LastAccessTime
5.FileInfo.LastWriteTime
6.FileInfo.Length