AsyncCmdlet.ShouldProcess Method (String, 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)
Usage
'Usage
Dim instance As AsyncCmdlet
Dim verboseDescription As String
Dim verboseWarning As String
Dim caption As String
Dim returnValue As Task(Of Boolean)
returnValue = instance.ShouldProcess(verboseDescription, verboseWarning, caption)
Syntax
'Declaration
Public Function ShouldProcess ( _
verboseDescription As String, _
verboseWarning As String, _
caption As String _
) As Task(Of Boolean)
public Task<bool> ShouldProcess (
string verboseDescription,
string verboseWarning,
string caption
)
public:
Task<bool>^ ShouldProcess (
String^ verboseDescription,
String^ verboseWarning,
String^ caption
)
public Task<boolean> ShouldProcess (
String verboseDescription,
String verboseWarning,
String caption
)
public function ShouldProcess (
verboseDescription : String,
verboseWarning : String,
caption : String
) : Task<boolean>
Parameters
- verboseDescription
- verboseWarning
- caption
Return Value
Returns Task.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
AsyncCmdlet Class
AsyncCmdlet Members
Microsoft.OneGet.Utility.PowerShell Namespace