FileSystemProxy.Drives 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용 가능한 모든 드라이브 이름의 읽기 전용 컬렉션을 반환합니다.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<System::IO::DriveInfo ^> ^ Drives { System::Collections::ObjectModel::ReadOnlyCollection<System::IO::DriveInfo ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.IO.DriveInfo> Drives { get; }
member this.Drives : System.Collections.ObjectModel.ReadOnlyCollection<System.IO.DriveInfo>
Public ReadOnly Property Drives As ReadOnlyCollection(Of DriveInfo)
속성 값
DriveInfo 개체인 사용 가능한 모든 드라이브의 읽기 전용 컬렉션입니다.
예제
다음은 메시지 상자에 사용 가능한 드라이브 이름을 표시하는 예제입니다.
Dim getInfo = System.IO.DriveInfo.GetDrives()
For Each info In getInfo
MsgBox(info.name)
Next
설명
이 속성은 모든 논리 드라이브를 반환합니다.