GetItemCommand.Force Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the force property.
public:
virtual property System::Management::Automation::SwitchParameter Force { System::Management::Automation::SwitchParameter get(); void set(System::Management::Automation::SwitchParameter value); };
public override System.Management.Automation.SwitchParameter Force { get; set; }
[System.Management.Automation.Parameter]
public override System.Management.Automation.SwitchParameter Force { get; set; }
member this.Force : System.Management.Automation.SwitchParameter with get, set
[<System.Management.Automation.Parameter>]
member this.Force : System.Management.Automation.SwitchParameter with get, set
Public Overrides Property Force As SwitchParameter
Property Value
- Attributes
Remarks
Gives the provider guidance on how vigorous it should be about performing the operation. If true, the provider should do everything possible to perform the operation. If false, the provider should attempt the operation but allow even simple errors to terminate the operation. For example, if the user tries to copy a file to a path that already exists and the destination is read-only, if force is true, the provider should copy over the existing read-only file. If force is false, the provider should write an error.