AsyncCmdlet.ShouldProcess Method (String, String)

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.PowerShell
Assembly: Microsoft.OneGet.Utility.PowerShell (in Microsoft.OneGet.Utility.PowerShell.dll)

Dim instance As AsyncCmdlet
Dim target As String
Dim action As String
Dim returnValue As Task(Of Boolean)

returnValue = instance.ShouldProcess(target, action)

public Task<bool> ShouldProcess (
	string target,
	string action
public Task<boolean> ShouldProcess (
	String target, 
	String action
public function ShouldProcess (
	target : String, 
	action : String
) : Task<boolean>




Return Value

Returns Task.

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