EnableComputerRestoreCommand.Drive Property
Gets and sets the value of the Drive parameter of the Enable-ComputerRestore cmdlet. This property is introduced in Windows PowerShell 2.0.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)
Usage
'Usage
Dim instance As EnableComputerRestoreCommand
Dim value As String()
value = instance.Drive
instance.Drive = value
Syntax
'Declaration
<ParameterAttribute(Position:=0, Mandatory:=True)> _
<ValidateNotNullOrEmptyAttribute> _
Public Property Drive As String()
[ParameterAttribute(Position=0, Mandatory=true)]
[ValidateNotNullOrEmptyAttribute]
public string[] Drive { get; set; }
[ParameterAttribute(Position=0, Mandatory=true)]
[ValidateNotNullOrEmptyAttribute]
public:
property array<String^>^ Drive {
array<String^>^ get ();
void set (array<String^>^ value);
}
/** @property */
public String[] get_Drive ()
/** @property */
public void set_Drive (String[] value)
public function get Drive () : String[]
public function set Drive (value : String[])
Property Value
A String array that contains the file system drives.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Enable-ComputerRestore in the Microsoft TechNet library.
For Help at the command line, type:
get-help enable-computerrestore
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
EnableComputerRestoreCommand Class
EnableComputerRestoreCommand Members
Microsoft.PowerShell.Commands Namespace