AsyncCommandRuntime.ShouldProcess Method
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.
Overloads
| ShouldProcess(String) | |
| ShouldProcess(String, String) | |
| ShouldProcess(String, String, String) | |
| ShouldProcess(String, String, String, ShouldProcessReason) |
ShouldProcess(String)
public bool ShouldProcess (string target);
abstract member ShouldProcess : string -> bool
override this.ShouldProcess : string -> bool
Public Function ShouldProcess (target As String) As Boolean
Parameters
- target
- String
Returns
Implements
Applies to
ShouldProcess(String, String)
public bool ShouldProcess (string target, string action);
abstract member ShouldProcess : string * string -> bool
override this.ShouldProcess : string * string -> bool
Public Function ShouldProcess (target As String, action As String) As Boolean
Parameters
- target
- String
- action
- String
Returns
Implements
Applies to
ShouldProcess(String, String, String)
public bool ShouldProcess (string verboseDescription, string verboseWarning, string caption);
abstract member ShouldProcess : string * string * string -> bool
override this.ShouldProcess : string * string * string -> bool
Public Function ShouldProcess (verboseDescription As String, verboseWarning As String, caption As String) As Boolean
Parameters
- verboseDescription
- String
- verboseWarning
- String
- caption
- String
Returns
Implements
Applies to
ShouldProcess(String, String, String, ShouldProcessReason)
public bool ShouldProcess (string verboseDescription, string verboseWarning, string caption, out System.Management.Automation.ShouldProcessReason shouldProcessReason);
abstract member ShouldProcess : string * string * string * ShouldProcessReason -> bool
override this.ShouldProcess : string * string * string * ShouldProcessReason -> bool
Public Function ShouldProcess (verboseDescription As String, verboseWarning As String, caption As String, ByRef shouldProcessReason As ShouldProcessReason) As Boolean
Parameters
- verboseDescription
- String
- verboseWarning
- String
- caption
- String
- shouldProcessReason
- ShouldProcessReason