CmdletProvider.Force Property

Gets a Boolean value that indicates whether the provider should do everything possible to perform an operation.


Namespace: System.Management.Automation.Provider
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As CmdletProvider
Dim value As SwitchParameter

value = instance.Force

public SwitchParameter Force { get; }
/** @property */
public SwitchParameter get_Force ()

public function get Force () : SwitchParameter

Property Value

True indicates that the provider should do everything possible to perform an operation. False indicates that the provider should attempt the operation, but allow even simple errors to terminate the operation.

For example, if Force is true and the user tries to copy a file to a path that already exists and the destination is read-only, the provider should copy over the existing read-only file. If Force is false, the provider should not attempt to write over the file and should write an error instead.

For more information about providers, see Windows PowerShell Providers.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2014 Microsoft