PSDriveInfo Class

Provides information about a Windows PowerShell drive that is used to access stored data through a provider.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As PSDriveInfo

public class PSDriveInfo : IComparable
public class PSDriveInfo implements IComparable
public class PSDriveInfo implements IComparable

A provider can derive from this class to provide its own public members or to cache information that is related to a drive. For instance, if a drive is a connection to a remote machine and making that connection is expensive, the provider might want to keep a handle to the connection as a member of a derived PSDriveInfo class when the provider is invoked.

A Windows PowerShell drive extends the concept of a typical drive in the following ways:

  • A Windows PowerShell drive name can be any alphanumeric sequence.

  • A Windows PowerShell drive can be defined at any valid root or point on a path.

  • A Windows PowerShell drive can be implemented by any Windows PowerShell provider, not just the file system. For example, a drive could be defined on the Active Directory or the Registry.


System.Object
  System.Management.Automation.PSDriveInfo

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft