UtilFileHasAttributes(FileInfo, FileAttributes) Method
Gets a value indicating whether a file contains the specified file-attribute(s).
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool HasAttributes(
FileInfo file,
FileAttributes attributes
)
Public Shared Function HasAttributes (
file As FileInfo,
attributes As FileAttributes
) As Boolean
Dim file As FileInfo
Dim attributes As FileAttributes
Dim returnValue As Boolean
returnValue = UtilFile.HasAttributes(file,
attributes)
public:
static bool HasAttributes(
FileInfo^ file,
FileAttributes attributes
)
static member HasAttributes :
file : FileInfo *
attributes : FileAttributes -> bool
No code example is currently available or this language may not be supported.
- file FileInfo
-
The source file.
- attributes FileAttributes
-
The file attribute(s).
Boolean if file contains the file-attribute(s),
otherwise.
This is a code example.
No code example is currently available or this language may not be supported.
Dim file As New FileInfo("C:\File.ext")
Dim hasAttribute As Boolean = HasAttributes(file, FileAttributes.Hidden Or FileAttributes.ReadOnly)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.