AsyncCommandRuntime.ShouldProcess Method

Definition

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

Boolean

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

Boolean

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

Boolean

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

Returns

Boolean

Implements

Applies to