AsyncCmdlet.ShouldContinue Method (String, String, Boolean, Boolean)
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 query As String
Dim caption As String
Dim yesToAll As Boolean
Dim noToAll As Boolean
Dim returnValue As Task(Of Boolean)
returnValue = instance.ShouldContinue(query, caption, yesToAll, noToAll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification:="MYOB.")> _
Public Function ShouldContinue ( _
query As String, _
caption As String, _
ByRef yesToAll As Boolean, _
ByRef noToAll As Boolean _
) As Task(Of Boolean)
[SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification="MYOB.")]
public Task<bool> ShouldContinue (
string query,
string caption,
ref bool yesToAll,
ref bool noToAll
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1045:DoNotPassTypesByReference", Justification=L"MYOB.")]
public:
Task<bool>^ ShouldContinue (
String^ query,
String^ caption,
bool% yesToAll,
bool% noToAll
)
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification="MYOB.") */
public Task<boolean> ShouldContinue (
String query,
String caption,
/** @ref */ boolean yesToAll,
/** @ref */ boolean noToAll
)
Parameters
- query
- caption
- yesToAll
- noToAll
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