FileAttributes (System.IO.FileAttributes)

Inherits: System.Enum

Interfaces: IComparable, IFormattable, IConvertible

Derived Types: 0

Assembly: mscorlib.dll

Provides attributes for files and directories.

VB.NET C#

C#

public enum struct FileAttributes : System.IComparable, System.IFormattable, System.IConvertible
{
}

Articles

TDD with PowerShell - Mocking Things

function get-childitem () { $fi = new-object System.IO.FileInfo(“bogus.txt”) $fi .Attributes = [System.IO.FileAttributes]::Archive

Viewing and editing file and directory attributes in ASP.NET | xefteri ...

The System.IO.FileAttributes class gives us access to file/directory attributes. In this article, we'll see how to use the class to first read the current attributes and then ...

xefteri forums

The System.IO.FileAttributes class gives us access to file/directory attributes. In this article, we'll see how to use this class to first read the current attributes and then ...

InformIT: Sams Teach Yourself C# in 24 Hours > Manipulating Files with ...

System.IO.FileAttributes objfileAttributes ; lngAttributes = System.IO.File.GetAttributes(txtSource.Text); After you have the flags in the variable, by & ing the variable with ...

Feedback: Flags type enum Debugger visualizer doesn't show all bits

When hovering over a variable with a flags type enum such as the following System.IO.FileAttributes a = System.IO.FileAttributes.Archive | System.IO.FileAttributes.Compressed ...

FileAttributes Enumeration

Provides attributes for files and directories. This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

AdvancedExample

ZipForge1.AddFiles( "*.*" , System.IO.FileAttributes.Archive Or System.IO.FileAttributes.Normal Or System.IO.FileAttributes.Directory, "*.txt" ) ' Set path to destination folder

Custom .NET Training ASP.NET Training Silverlight Training LINQ Training IT Support