SetAttributes() 공개 추상적인 메소드

public abstract SetAttributes ( string fullPath, FileAttributes attributes ) : void
fullPath string
attributes FileAttributes
리턴 void
예제 #1
0
        public static void SetAttributes(string path, FileAttributes fileAttributes)
        {
#if MONO
            if (((uint)fileAttributes & 0x80000000) != 0)
            {
                MonoIOError error;
                Path.Validate(path);

                if (!MonoIO.SetFileAttributes(path, fileAttributes, out error))
                {
                    throw MonoIO.GetException(path, error);
                }
                return;
            }
#endif
            string fullPath = Path.GetFullPath(path);
            FileSystem.SetAttributes(fullPath, fileAttributes);
        }
예제 #2
0
 public static void SetAttributes(string path, FileAttributes fileAttributes)
 => FileSystem.SetAttributes(Path.GetFullPath(path), fileAttributes);
예제 #3
0
파일: File.cs 프로젝트: dfederm/corefx
        public static void SetAttributes(string path, FileAttributes fileAttributes)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetAttributes(fullPath, fileAttributes);
        }