Bagikan melalui


ServerComputer.FileSystem Properti

Definisi

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