.NETFramework:Directory
阿新 • • 發佈:2018-05-20
float span sta 博客園 drive x86 eat roo HR
1、
ylbtech-.NETFramework:Directory |
1.返回頂部 |
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll #endregion using System.Collections.Generic; using System.Runtime.InteropServices;2、using System.Security; using System.Security.AccessControl; namespace System.IO { [ComVisible(true)] public static class Directory { [SecuritySafeCritical] public static DirectoryInfo CreateDirectory(string path); [SecuritySafeCritical] public static DirectoryInfo CreateDirectory(stringpath, DirectorySecurity directorySecurity); [SecuritySafeCritical] public static void Delete(string path, bool recursive); [SecuritySafeCritical] public static void Delete(string path); public static IEnumerable<string> EnumerateDirectories(string path);public static IEnumerable<string> EnumerateDirectories(string path, string searchPattern); public static IEnumerable<string> EnumerateDirectories(string path, string searchPattern, SearchOption searchOption); public static IEnumerable<string> EnumerateFiles(string path); public static IEnumerable<string> EnumerateFiles(string path, string searchPattern); public static IEnumerable<string> EnumerateFiles(string path, string searchPattern, SearchOption searchOption); public static IEnumerable<string> EnumerateFileSystemEntries(string path); public static IEnumerable<string> EnumerateFileSystemEntries(string path, string searchPattern, SearchOption searchOption); public static IEnumerable<string> EnumerateFileSystemEntries(string path, string searchPattern); [SecuritySafeCritical] public static bool Exists(string path); public static DirectorySecurity GetAccessControl(string path); public static DirectorySecurity GetAccessControl(string path, AccessControlSections includeSections); public static DateTime GetCreationTime(string path); public static DateTime GetCreationTimeUtc(string path); [SecuritySafeCritical] public static string GetCurrentDirectory(); public static string[] GetDirectories(string path, string searchPattern, SearchOption searchOption); public static string[] GetDirectories(string path, string searchPattern); public static string[] GetDirectories(string path); [SecuritySafeCritical] public static string GetDirectoryRoot(string path); public static string[] GetFiles(string path, string searchPattern, SearchOption searchOption); public static string[] GetFiles(string path); public static string[] GetFiles(string path, string searchPattern); public static string[] GetFileSystemEntries(string path); public static string[] GetFileSystemEntries(string path, string searchPattern); public static string[] GetFileSystemEntries(string path, string searchPattern, SearchOption searchOption); public static DateTime GetLastAccessTime(string path); public static DateTime GetLastAccessTimeUtc(string path); public static DateTime GetLastWriteTime(string path); public static DateTime GetLastWriteTimeUtc(string path); [SecuritySafeCritical] public static string[] GetLogicalDrives(); public static DirectoryInfo GetParent(string path); [SecuritySafeCritical] public static void Move(string sourceDirName, string destDirName); [SecuritySafeCritical] public static void SetAccessControl(string path, DirectorySecurity directorySecurity); public static void SetCreationTime(string path, DateTime creationTime); [SecuritySafeCritical] public static void SetCreationTimeUtc(string path, DateTime creationTimeUtc); [SecuritySafeCritical] public static void SetCurrentDirectory(string path); public static void SetLastAccessTime(string path, DateTime lastAccessTime); [SecuritySafeCritical] public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc); public static void SetLastWriteTime(string path, DateTime lastWriteTime); [SecuritySafeCritical] public static void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc); } }
2.返回頂部 |
3.返回頂部 |
4.返回頂部 |
5.返回頂部 |
6.返回頂部 |
作者:ylbtech 出處:http://ylbtech.cnblogs.com/ 本文版權歸作者和博客園共有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接,否則保留追究法律責任的權利。 |
.NETFramework:Directory