共用方式為


DriveInfo.RootDirectory 屬性

定義

取得磁碟的根目錄。

public:
 property System::IO::DirectoryInfo ^ RootDirectory { System::IO::DirectoryInfo ^ get(); };
public System.IO.DirectoryInfo RootDirectory { get; }
member this.RootDirectory : System.IO.DirectoryInfo
Public ReadOnly Property RootDirectory As DirectoryInfo

屬性值

包含磁碟機根目錄的物件。

適用於