DisableComputerRestoreCommand.Drive Property
Gets and sets the value of the Drive parameter of the Disable-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 DisableComputerRestoreCommand
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 names the file system drives.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Disable-ComputerRestore in the Microsoft TechNet library.
For Help at the command line, type:
get-help disable-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
DisableComputerRestoreCommand Class
DisableComputerRestoreCommand Members
Microsoft.PowerShell.Commands Namespace