AsyncCmdlet.WriteWarning Method
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 text As String
Dim returnValue As Task(Of Boolean)
returnValue = instance.WriteWarning(text)
Syntax
'Declaration
Public Function WriteWarning ( _
text As String _
) As Task(Of Boolean)
public Task<bool> WriteWarning (
string text
)
public:
Task<bool>^ WriteWarning (
String^ text
)
public Task<boolean> WriteWarning (
String text
)
public function WriteWarning (
text : String
) : Task<boolean>
Parameters
- text
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