GetPSDriveCommand.Name Property

Definition

Gets or sets the drive name the user is looking for.

public:
 property cli::array <System::String ^> ^ Name { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public:
 property Platform::Array <Platform::String ^> ^ Name { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
public string[] Name { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="Name", Position=0, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[] Name { get; set; }
member this.Name : string[] with get, set
[<System.Management.Automation.Parameter(ParameterSetName="Name", Position=0, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.Name : string[] with get, set
Public Property Name As String()

Property Value

String[]
Attributes

Remarks

If the drive name is left empty, all drives will be returned. A globing or regular expression can also be supplied and any drive names that match the expression will be returned.

Applies to