UtilDirectoryHasAttributes Method
Gets a value indicating whether a directory contains the specified directory-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(
string directoryPath,
FileAttributes attributes
)
Public Shared Function HasAttributes (
directoryPath As String,
attributes As FileAttributes
) As Boolean
Dim directoryPath As String
Dim attributes As FileAttributes
Dim returnValue As Boolean
returnValue = UtilDirectory.HasAttributes(directoryPath,
attributes)
public:
static bool HasAttributes(
String^ directoryPath,
FileAttributes attributes
)
static member HasAttributes :
directoryPath : string *
attributes : FileAttributes -> bool
No code example is currently available or this language may not be supported.
- directoryPath String
-
The directory path.
- attributes FileAttributes
-
The directory attribute(s).
Boolean if file contains the directory-attribute(s),
otherwise.
This is a code example.
No code example is currently available or this language may not be supported.
Dim hasAttribute As Boolean = HasAttributesAttributes("C:\Directory\", 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.