Dela via


CmdletProvider.Force Property

Definition

Gets the force property.

public:
 property System::Management::Automation::SwitchParameter Force { System::Management::Automation::SwitchParameter get(); };
public System.Management.Automation.SwitchParameter Force { get; }
member this.Force : System.Management.Automation.SwitchParameter
Public ReadOnly Property Force As SwitchParameter

Property Value

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.

Applies to