﻿<?xml version="1.0" encoding="utf-8"?><Type Name="DriveInfo" FullName="System.IO.DriveInfo"><TypeSignature Language="C#" Value="public sealed class DriveInfo : System.Runtime.Serialization.ISerializable" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit DriveInfo extends System.Object implements class System.Runtime.Serialization.ISerializable" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Runtime.Serialization.ISerializable</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This class models a drive and provides methods and properties to query for drive information. Use <see cref="T:System.IO.DriveInfo" /> to determine what drives are available, and what type of drives they are. You can also query to determine the capacity and available free space on the drive.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides access to information on a drive.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public DriveInfo (string driveName);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string driveName) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="driveName" Type="System.String" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this class to obtain information on drives. The drive name must be either an uppercase or lowercase letter from 'a' to 'z'. You cannot use this method to obtain information on drive names that are null or use UNC (\\server\share) paths.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides access to information on the specified drive.</para></summary><param name="driveName"><attribution license="cc4" from="Microsoft" modified="false" />A valid drive path or drive letter. This can be either uppercase or lowercase, 'a' to 'z'. A null value is not valid. </param></Docs></Member><Member MemberName="AvailableFreeSpace"><MemberSignature Language="C#" Value="public long AvailableFreeSpace { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int64 AvailableFreeSpace" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property indicates the amount of free space available on the drive. Note that this number may be different from the <see cref="P:System.IO.DriveInfo.TotalFreeSpace" /> number because this property takes into account disk quotas.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates the amount of available free space on a drive, in bytes.</para></summary></Docs></Member><Member MemberName="DriveFormat"><MemberSignature Language="C#" Value="public string DriveFormat { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string DriveFormat" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use <see cref="P:System.IO.DriveInfo.DriveFormat" /> to determine what formatting a drive uses.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the name of the file system, such as NTFS or FAT32.</para></summary></Docs></Member><Member MemberName="DriveType"><MemberSignature Language="C#" Value="public System.IO.DriveType DriveType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.IO.DriveType DriveType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.IO.DriveType</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="P:System.IO.DriveInfo.DriveType" /> property indicates whether a drive is one of the following: CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, or Unknown. These values are described in the <see cref="T:System.IO.DriveType" /> enumeration.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the drive type, such as CD-ROM, removable, network, or fixed.</para></summary></Docs></Member><Member MemberName="GetDrives"><MemberSignature Language="C#" Value="public static System.IO.DriveInfo[] GetDrives ();" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.IO.DriveInfo[] GetDrives() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.IO.DriveInfo[]</ReturnType></ReturnValue><Parameters /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method retrieves all logical drive names on a computer. You can use this information to iterate through the array and obtain information on the drives using other <see cref="T:System.IO.DriveInfo" /> methods and properties. Use the <see cref="P:System.IO.DriveInfo.IsReady" /> property to test whether a drive is ready because using this method on a drive that is not ready will throw a <see cref="T:System.IO.IOException" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the drive names of all logical drives on a computer.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An array of type <see cref="T:System.IO.DriveInfo" /> that represents the logical drives on a computer.</para></returns></Docs></Member><Member MemberName="IsReady"><MemberSignature Language="C#" Value="public bool IsReady { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsReady" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="P:System.IO.DriveInfo.IsReady" /> indicates whether a drive is ready. For example, it indicates whether a CD is in a CD drive or whether a removable storage device is ready for read/write operations. If you do not test whether a drive is ready, and it is not ready,  querying the drive using <see cref="T:System.IO.DriveInfo" /> will raise an <see cref="T:System.IO.IOException" />.</para><para>Do not rely on <see cref="P:System.IO.DriveInfo.IsReady" /> to avoid catching exceptions from other members such as <see cref="P:System.IO.DriveInfo.TotalSize" />, <see cref="P:System.IO.DriveInfo.TotalFreeSpace" />, and <see cref="P:System.IO.DriveInfo.DriveFormat" />. Between the time that your code checks <see cref="P:System.IO.DriveInfo.IsReady" /> and then accesses one of the other properties (even if the access occurs immediately after the check), a drive may have been disconnected or a disk may have been removed.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value that indicates whether a drive is ready.</para></summary></Docs></Member><Member MemberName="Name"><MemberSignature Language="C#" Value="public string Name { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Name" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property is the name assigned to the drive, such as C:\ or E:\.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the name of a drive, such as C:\.</para></summary></Docs></Member><Member MemberName="RootDirectory"><MemberSignature Language="C#" Value="public System.IO.DirectoryInfo RootDirectory { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.IO.DirectoryInfo RootDirectory" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.IO.DirectoryInfo</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the root directory of a drive.</para></summary></Docs></Member><Member MemberName="System.Runtime.Serialization.ISerializable.GetObjectData"><MemberSignature Language="C#" Value="void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.Serialization.ISerializable.GetObjectData(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" /><Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Any objects included in the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object are automatically tracked and serialized by the formatter.</para><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.IO.DriveInfo" /> instance is cast to an <see cref="T:System.Runtime.Serialization.ISerializable" /> interface.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the data needed to serialize the target object.</para></summary><param name="info"><attribution license="cc4" from="Microsoft" modified="false" />The object to populate with data.</param><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param></Docs></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method returns the <see cref="P:System.IO.DriveInfo.Name" /> property.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a drive name as a string.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The name of the drive.</para></returns></Docs></Member><Member MemberName="TotalFreeSpace"><MemberSignature Language="C#" Value="public long TotalFreeSpace { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int64 TotalFreeSpace" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property indicates the total amount of free space available on the drive, not just what is available to the current user.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the total amount of free space available on a drive, in bytes.</para></summary></Docs></Member><Member MemberName="TotalSize"><MemberSignature Language="C#" Value="public long TotalSize { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int64 TotalSize" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property indicates the total size of the drive in bytes, not just what is available to the current user.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the total size of storage space on a drive, in bytes.</para></summary></Docs></Member><Member MemberName="VolumeLabel"><MemberSignature Language="C#" Value="public string VolumeLabel { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance string VolumeLabel" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The label length is determined by the operating system. For example, NTFS allows a volume label to be up to 32 characters long. Note that null is a valid <see cref="P:System.IO.DriveInfo.VolumeLabel" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the volume label of a drive.</para></summary></Docs></Member></Members></Type>