AsyncCmdlet.Error Method (ErrorMessage, Object[])
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 errorMessage As ErrorMessage
Dim args As Object()
Dim returnValue As Boolean
returnValue = Me.Error(errorMessage, args)
Syntax
'Declaration
Protected Function Error ( _
errorMessage As ErrorMessage, _
ParamArray args As Object() _
) As Boolean
protected bool Error (
ErrorMessage errorMessage,
params Object[] args
)
protected:
bool Error (
ErrorMessage^ errorMessage,
... array<Object^>^ args
)
protected boolean Error (
ErrorMessage errorMessage,
Object[] args
)
protected function Error (
errorMessage : ErrorMessage,
... args : Object[]
) : boolean
Parameters
- errorMessage
- args
Return Value
Returns Boolean.
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