CmdletProvider.ShouldProcess Method

Definition

Overloads

ShouldProcess(String, String, String, ShouldProcessReason)

C++
public:
 bool ShouldProcess(System::String ^ verboseDescription, System::String ^ verboseWarning, System::String ^ caption, [Runtime::InteropServices::Out] System::Management::Automation::ShouldProcessReason % shouldProcessReason);

Parameters

verboseDescription
String
verboseWarning
String
caption
String
shouldProcessReason
ShouldProcessReason

Returns

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

ShouldProcess(String, String, String)

C++
public:
 bool ShouldProcess(System::String ^ verboseDescription, System::String ^ verboseWarning, System::String ^ caption);

Parameters

verboseDescription
String
verboseWarning
String
caption
String

Returns

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

ShouldProcess(String)

C++
public:
 bool ShouldProcess(System::String ^ target);

Parameters

target
String

Returns

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

ShouldProcess(String, String)

C++
public:
 bool ShouldProcess(System::String ^ target, System::String ^ action);

Parameters

target
String
action
String

Returns

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0