Share via


AsyncCmdlet.Error Method (String, 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 id As String
Dim category As String
Dim targetObjectValue As String
Dim messageText As String
Dim returnValue As Boolean

returnValue = instance.Error(id, category, targetObjectValue, messageText)

Syntax

'Declaration
Public Function Error ( _
    id As String, _
    category As String, _
    targetObjectValue As String, _
    messageText As String _
) As Boolean
public bool Error (
    string id,
    string category,
    string targetObjectValue,
    string messageText
)
public:
bool Error (
    String^ id, 
    String^ category, 
    String^ targetObjectValue, 
    String^ messageText
)
public boolean Error (
    String id, 
    String category, 
    String targetObjectValue, 
    String messageText
)
public function Error (
    id : String, 
    category : String, 
    targetObjectValue : String, 
    messageText : String
) : boolean

Parameters

  • id
  • category
  • targetObjectValue
  • messageText

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