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 Available
Aplikasi Formulir Windows Yes
Pustaka Kelas Yes
Aplikasi Konsol Yes
Pustaka Kontrol Formulir Windows Yes
Perpustakaan Kontrol Situs Web Yes
Layanan Windows Yes
Situs Web Yes

Berlaku untuk

Lihat juga