<summary>Provides access to information on the specified drive.</summary>
<param name="driveName">A valid drive path or drive letter. This can be either uppercase or lowercase, 'a' to 'z'. A null value is not valid.</param>
<exception cref="T:System.ArgumentNullException">The drive letter cannot be <see langword="null" />.</exception>
- <exception cref="T:System.ArgumentException">The first letter of <paramref name="driveName" /> is not an uppercase or lowercase letter from 'a' to 'z'.
--or-
-<paramref name="driveName" /> does not refer to a valid drive.</exception>
+ <exception cref="T:System.ArgumentException">The first letter of <paramref name="driveName" /> is not an uppercase or lowercase letter from 'a' to 'z'.
+
+ -or-
+
+ <paramref name="driveName" /> does not refer to a valid drive.</exception>
+ </member>
+ <member name="M:System.IO.DriveInfo.GetDrives">
+ <summary>Retrieves the drive names of all logical drives on a computer.</summary>
+ <exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
+ <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
+ <returns>An array of type <see cref="T:System.IO.DriveInfo" /> that represents the logical drives on a computer.</returns>
+ </member>
+ <member name="M:System.IO.DriveInfo.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
+ <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the data needed to serialize the target object.</summary>
+ <param name="info">The object to populate with data.</param>
+ <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param>
+ </member>
+ <member name="M:System.IO.DriveInfo.ToString">
+ <summary>Returns a drive name as a string.</summary>
+ <returns>The name of the drive.</returns>
</member>
<member name="P:System.IO.DriveInfo.AvailableFreeSpace">
<summary>Indicates the amount of available free space on a drive, in bytes.</summary>
- <returns>The amount of free space available on the drive, in bytes.</returns>
<exception cref="T:System.UnauthorizedAccessException">Access to the drive information is denied.</exception>
<exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
+ <returns>The amount of free space available on the drive, in bytes.</returns>
</member>
<member name="P:System.IO.DriveInfo.DriveFormat">
<summary>Gets the name of the file system, such as NTFS or FAT32.</summary>
- <returns>The name of the file system on the specified drive.</returns>
<exception cref="T:System.UnauthorizedAccessException">Access to the drive information is denied.</exception>
<exception cref="T:System.IO.DriveNotFoundException">The drive does not exist or is not mapped.</exception>
<exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
+ <returns>The name of the file system on the specified drive.</returns>
</member>
<member name="P:System.IO.DriveInfo.DriveType">
<summary>Gets the drive type, such as CD-ROM, removable, network, or fixed.</summary>
<returns>One of the enumeration values that specifies a drive type.</returns>
</member>
- <member name="M:System.IO.DriveInfo.GetDrives">
- <summary>Retrieves the drive names of all logical drives on a computer.</summary>
- <returns>An array of type <see cref="T:System.IO.DriveInfo" /> that represents the logical drives on a computer.</returns>
- <exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
- <exception cref="T:System.UnauthorizedAccessException">The caller does not have the required permission.</exception>
- </member>
<member name="P:System.IO.DriveInfo.IsReady">
<summary>Gets a value that indicates whether a drive is ready.</summary>
<returns>
<summary>Gets the root directory of a drive.</summary>
<returns>An object that contains the root directory of the drive.</returns>
</member>
- <member name="M:System.IO.DriveInfo.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
- <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the data needed to serialize the target object.</summary>
- <param name="info">The object to populate with data.</param>
- <param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param>
- </member>
- <member name="M:System.IO.DriveInfo.ToString">
- <summary>Returns a drive name as a string.</summary>
- <returns>The name of the drive.</returns>
- </member>
<member name="P:System.IO.DriveInfo.TotalFreeSpace">
<summary>Gets the total amount of free space available on a drive, in bytes.</summary>
- <returns>The total free space available on a drive, in bytes.</returns>
<exception cref="T:System.UnauthorizedAccessException">Access to the drive information is denied.</exception>
<exception cref="T:System.IO.DriveNotFoundException">The drive is not mapped or does not exist.</exception>
<exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
+ <returns>The total free space available on a drive, in bytes.</returns>
</member>
<member name="P:System.IO.DriveInfo.TotalSize">
<summary>Gets the total size of storage space on a drive, in bytes.</summary>
- <returns>The total size of the drive, in bytes.</returns>
<exception cref="T:System.UnauthorizedAccessException">Access to the drive information is denied.</exception>
<exception cref="T:System.IO.DriveNotFoundException">The drive is not mapped or does not exist.</exception>
<exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
+ <returns>The total size of the drive, in bytes.</returns>
</member>
<member name="P:System.IO.DriveInfo.VolumeLabel">
<summary>Gets or sets the volume label of a drive.</summary>
- <returns>The volume label.</returns>
<exception cref="T:System.IO.IOException">An I/O error occurred (for example, a disk error or a drive was not ready).</exception>
<exception cref="T:System.IO.DriveNotFoundException">The drive is not mapped or does not exist.</exception>
<exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
- <exception cref="T:System.UnauthorizedAccessException">The volume label is being set on a network or CD-ROM drive.
--or-
-Access to the drive information is denied.</exception>
+ <exception cref="T:System.UnauthorizedAccessException">The volume label is being set on a network or CD-ROM drive.
+
+ -or-
+
+ Access to the drive information is denied.</exception>
+ <returns>The volume label.</returns>
</member>
<member name="T:System.IO.DriveNotFoundException">
<summary>The exception that is thrown when trying to access a drive or share that is not available.</summary>