Share via


Attributes Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the attributes for the current file or directory.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public ReadOnly Property Attributes As FileAttributes
public FileAttributes Attributes { get; }
public:
property FileAttributes Attributes {
    FileAttributes get ();
}
member Attributes : FileAttributes with get
function get Attributes () : FileAttributes

Property Value

Type: System.IO. . :: . .FileAttributes
FileAttributes of the current FileSystemInfo.

Remarks

The value of this property is a combination of the archive, compressed, directory, hidden, offline, read-only, system, and temporary file attribute flags.

.NET Framework Security

See Also

Reference

FileSystemInfo Class

System.IO Namespace