日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

vb.net2019- 目录

發布時間:2025/3/12 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vb.net2019- 目录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

DirectoryInfo:
Attributes
獲取或設置當前文件或目錄的特性。 (Inherited from FileSystemInfo)
CreationTime
獲取或設置當前文件或目錄的創建時間。 (Inherited from FileSystemInfo)
CreationTimeUtc
獲取或設置當前文件或目錄的創建時間,其格式為協調世界時 (UTC)。 (Inherited from FileSystemInfo)
Exists
獲取指示目錄是否存在的值。
Extension
獲取表示文件擴展名部分的字符串。 (Inherited from FileSystemInfo)
FullName
獲取目錄的完整路徑。
LastAccessTime
獲取或設置上次訪問當前文件或目錄的時間。 (Inherited from FileSystemInfo)
LastAccessTimeUtc
獲取或設置上次訪問當前文件或目錄的時間,其格式為協調世界時 (UTC)。 (Inherited from FileSystemInfo)
LastWriteTime
獲取或設置上次寫入當前文件或目錄的時間。 (Inherited from FileSystemInfo)
LastWriteTimeUtc
獲取或設置上次寫入當前文件或目錄的時間,其格式為協調世界時 (UTC)。 (Inherited from FileSystemInfo)
Name
獲取此 DirectoryInfo 實例的名稱。
Parent
獲取指定子目錄的父目錄。
Root
獲取目錄的根部分。
方法
Create()
創建目錄。
Create(DirectorySecurity)
使用 DirectorySecurity 對象創建目錄。
CreateObjRef(Type)
創建一個對象,該對象包含生成用于與遠程對象進行通信的代理所需的全部相關信息。 (Inherited from MarshalByRefObject)
CreateSubdirectory(String)
在指定路徑上創建一個或多個子目錄。 指定路徑可以是相對于 DirectoryInfo 類的此實例的路徑。
CreateSubdirectory(String, DirectorySecurity)
使用指定的安全性在指定的路徑上創建一個或多個子目錄。 指定路徑可以是相對于 DirectoryInfo 類的此實例的路徑。
Delete()
如果此 DirectoryInfo 為空,則刪除它。
Delete(Boolean)
刪除 DirectoryInfo 的此實例,指定是否刪除子目錄和文件。
EnumerateDirectories()
返回當前目錄中的目錄信息的可枚舉集合。
EnumerateDirectories(String)
返回與指定的搜索模式匹配的目錄信息的可枚舉集合。
EnumerateDirectories(String, SearchOption)
返回與指定的搜索模式和搜索子目錄選項匹配的目錄信息的可枚舉集合。
EnumerateFiles()
返回當前目錄中的文件信息的可枚舉集合。
EnumerateFiles(String)
返回與搜索模式匹配的文件信息的可枚舉集合。
EnumerateFiles(String, SearchOption)
返回與指定的搜索模式和搜索子目錄選項匹配的文件信息的可枚舉集合。
EnumerateFileSystemInfos()
返回當前目錄中的文件系統信息的可枚舉集合。
EnumerateFileSystemInfos(String)
返回與指定的搜索模式匹配的文件系統信息的可枚舉集合。
EnumerateFileSystemInfos(String, SearchOption)
返回與指定的搜索模式和搜索子目錄選項匹配的文件系統信息的可枚舉集合。
Equals(Object)
確定指定的對象是否等于當前對象。 (Inherited from Object)
GetAccessControl()
獲取 DirectorySecurity 對象,該對象封裝當前 DirectoryInfo 對象所描述的目錄的訪問控制列表 (ACL) 項。
GetAccessControl(AccessControlSections)
獲取 DirectorySecurity 對象,該對象封裝當前 DirectoryInfo 對象所描述的目錄的指定類型的訪問控制列表 (ACL) 項。
GetDirectories()
返回當前目錄的子目錄。
GetDirectories(String)
返回當前 DirectoryInfo 中、與給定搜索條件匹配的目錄的數組。
GetDirectories(String, SearchOption)
返回當前 DirectoryInfo 中與給定的搜索條件匹配并使用某個值確定是否在子目錄中搜索的目錄的數組。
GetFiles()
返回當前目錄的文件列表。
GetFiles(String)
返回當前目錄中與給定的搜索模式匹配的文件列表。
GetFiles(String, SearchOption)
返回與給定的搜索模式匹配并且使用某個值確定是否在子目錄中進行搜索的當前目錄的文件列表。
GetFileSystemInfos()
返回表示某個目錄中所有文件和子目錄的強類型 FileSystemInfo 項的數組。
GetFileSystemInfos(String)
檢索表示與指定的搜索條件匹配的文件和子目錄的強類型 FileSystemInfo 對象的數組。
GetFileSystemInfos(String, SearchOption)
檢索表示與指定的搜索條件匹配的文件和子目錄的 FileSystemInfo 對象的數組。
GetHashCode()
作為默認哈希函數。 (Inherited from Object)
GetLifetimeService()
檢索控制此實例的生存期策略的當前生存期服務對象。 (Inherited from MarshalByRefObject)
GetObjectData(SerializationInfo, StreamingContext)
設置帶有文件名和附加異常信息的 SerializationInfo 對象。 (Inherited from FileSystemInfo)
GetType()
獲取當前實例的 Type。 (Inherited from Object)
InitializeLifetimeService()
獲取生存期服務對象來控制此實例的生存期策略。 (Inherited from MarshalByRefObject)
MemberwiseClone()
創建當前 Object 的淺表副本。 (Inherited from Object)
MemberwiseClone(Boolean)
創建當前 MarshalByRefObject 對象的淺表副本。 (Inherited from MarshalByRefObject)
MoveTo(String)
將 DirectoryInfo 實例及其內容移動到新路徑。
Refresh()
刷新對象的狀態。 (Inherited from FileSystemInfo)
SetAccessControl(DirectorySecurity)
將 DirectorySecurity 對象所描述的訪問控制列表 (ACL) 項應用于當前 DirectoryInfo 對象所描述的目錄。
ToString()
返回用戶所傳遞的原始路徑。
FullPath
表示目錄或文件的完全限定目錄。 (Inherited from FileSystemInfo)
OriginalPath
最初由用戶指定的目錄(不論是相對目錄還是絕對目錄)。 (Inherited from FileSystemInfo)


Imports System.IO

Public Class Form1Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickFolderBrowserDialog1.Description = "請選擇路徑"Dim result As DialogResult = FolderBrowserDialog1.ShowDialog()If result = DialogResult.OK ThenDim folderPath As String = FolderBrowserDialog1.SelectedPath.Trim()Dim dirInfo As New DirectoryInfo(folderPath)If dirInfo.Exists ThenLabel1.Text = dirInfo.FullName & "目錄創建于 " & dirInfo.CreationTimeLabel1.Text &= vbCrLf & "目錄最后訪問" & dirInfo.LastAccessTimeLabel1.Text &= vbCrLf & "目錄最后寫" & dirInfo.LastWriteTimeEnd IfEnd IfEnd Sub End Class

總結

以上是生活随笔為你收集整理的vb.net2019- 目录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。