ServerComputer.FileSystem プロパティ

定義

ドライブ、ファイル、ディレクトリを操作するためのプロパティとメソッドを提供するオブジェクトを取得します。

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

プロパティ値

コンピューターの My.Computer.FileSystem オブジェクト。

次の使用例は、フォルダー C:\backup\logs が存在するかどうかを調べて、そのプロパティを確認します。

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

注釈

このプロパティは、 FileSystemProxy オブジェクトに簡単にアクセスできます。

プロジェクトの種類別の可用性

プロジェクト タイプ 在庫有り
Windows フォーム アプリケーション Yes
クラス ライブラリ Yes
コンソール アプリケーション Yes
Windows フォーム コントロール ライブラリ Yes
Web コントロール ライブラリ Yes
Windows サービス Yes
ウェブサイト Yes

適用対象

こちらもご覧ください