Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetAttributes()

static void System.IO.FileSystem.SetAttributes ( string fullPath,
FileAttributes attributes )
inlinestatic

Definition at line 520 of file FileSystem.cs.

521 {
522 if (!Interop.Kernel32.SetFileAttributes(fullPath, (int)attributes))
523 {
525 if (lastWin32Error == 87)
526 {
527 throw new ArgumentException(SR.Arg_InvalidFileAttrs, "attributes");
528 }
529 throw Win32Marshal.GetExceptionForWin32Error(lastWin32Error, fullPath);
530 }
531 }
static bool SetFileAttributes(string name, int attr)
Definition Interop.cs:1035

References System.SR.Arg_InvalidFileAttrs, System.IO.Win32Marshal.GetExceptionForWin32Error(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), and Interop.Kernel32.SetFileAttributes().

Referenced by System.IO.File.SetAttributes().