WindowsFileSystemItemTrySetAttributes Method |
IT Hit User File System
Tries to set file attributes.
Namespace:
ITHit.FileSystem.Windows
Assembly:
ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.4.27341.0
Syntax public static bool TrySetAttributes(
string path,
FileAttributes attributes
)
Public Shared Function TrySetAttributes (
path As String,
attributes As FileAttributes
) As Boolean
public:
static bool TrySetAttributes(
String^ path,
FileAttributes attributes
)
static member TrySetAttributes :
path : string *
attributes : FileAttributes -> bool
Parameters
- path
- Type: SystemString
File system path. - attributes
- Type: System.IOFileAttributes
Attributes.
Return Value
Type:
BooleanTrue if the method completed successfully, false - otherwise.
See Also