ServerComputer.FileSystem Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan objek yang menyediakan properti dan metode untuk bekerja dengan drive, file, dan direktori.
public:
property Microsoft::VisualBasic::MyServices::FileSystemProxy ^ FileSystem { Microsoft::VisualBasic::MyServices::FileSystemProxy ^ get(); };
public Microsoft.VisualBasic.MyServices.FileSystemProxy FileSystem { get; }
member this.FileSystem : Microsoft.VisualBasic.MyServices.FileSystemProxy
Public ReadOnly Property FileSystem As FileSystemProxy
Nilai Properti
Objek My.Computer.FileSystem
untuk komputer.
Contoh
Contoh ini memeriksa untuk menentukan apakah folder C:\backup\logs
ada dan memeriksa propertinya.
Dim logInfo As System.IO.DirectoryInfo
If My.Computer.FileSystem.DirectoryExists("C:\backup\logs") Then
logInfo = My.Computer.FileSystem.GetDirectoryInfo(
"C:\backup\logs")
End If
Keterangan
Properti ini menyediakan akses mudah ke FileSystemProxy objek .
Ketersediaan menurut Jenis Proyek
Jenis proyek | Tersedia |
---|---|
Aplikasi Formulir Windows | Ya |
Pustaka Kelas | Ya |
Aplikasi Konsol | Ya |
Pustaka Kontrol Formulir Windows | Ya |
Pustaka Kontrol Web | Ya |
Layanan Windows | Ya |
Situs Web | Ya |
Berlaku untuk
Lihat juga
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.