Windows desktop applications
Collapse the table of content
Expand the table of content

PSDriveInfo Members

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

The following tables list the members exposed by the PSDriveInfo type.

(see also Protected Constructors)
 NameDescription
 PSDriveInfoOverloaded. Initializes a new instance of the PSDriveInfo class. The variants of this constructor can create an object that contains an existing PSDriveInfo object and create an object that contains new drive information.
Top

  Name Description
  PSDriveInfo Overloaded. Initializes a new instance of the PSDriveInfo class. The variants of this constructor can create an object that contains an existing PSDriveInfo object and create an object that contains new drive information.
Top

  Name Description
public property Credential Gets the security credentials for the Windows PowerShell drive.
public property CurrentLocation Gets or sets the current location within the drive.
public property Description Gets or sets the description of the Windows PowerShell drive.
public property DisplayRoot Gets the Universal Naming Convention (UNC) path of the drive. This property is populated only if the created drive object is targeting a network drive; otherwise, this property is null. Introduced in Windows PowerShell 3.0.
public property Name Gets the name of the Windows PowerShell drive.
public property Provider Gets the provider associated with the Windows PowerShell drive.
public property Root Gets the root of the Windows PowerShell drive.
Top

(see also Protected Methods)
 NameDescription
public methodCompareToOverloaded. Retrieves an integer that indicates whether the current drive object is less than, equal to, or greater than another object. The variants of this method can compare the current drive object to an Object object or a PSDriveInfo object.
public methodEqualsOverloaded. Determines whether the name or type of one PSDriveInfo object is equal to the name or type of another Object or PSDriveInfo object.
public methodGetHashCodeOverridden. Generates an Int32 value that represents the current drive.
public methodGetType  (Inherited from Object)
public methodstaticEqualityCompares two drive names, and returns true if the two names are lexically equal.
public methodstaticGreaterThanCompares two drive names, and returns true if one name is lexically greater than the other name.
public methodstaticInequalityCompares two drive names, and returns true if the two names are not lexically equal.
public methodstaticLessThanCompares two drive names, and returns true if one name is lexically less than the other name.
public methodToStringOverridden. Converts the PSDriveInfo object to a string.
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show:
© 2016 Microsoft