Compartir a través de


Task.WriteError Method ()

NOTE: This API is now obsolete.

Namespace:  Microsoft.Exchange.Configuration.Tasks
Assembly:  Microsoft.Exchange.Configuration.ObjectModel (in Microsoft.Exchange.Configuration.ObjectModel.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use WriteError(Exception e, ErrorCategory category, object target) instead.")> _
Protected Sub WriteError ( _
    errorRecord As ErrorRecord _
)
'Usage
Dim errorRecord As ErrorRecord

Me.WriteError(errorRecord)
[ObsoleteAttribute("Use WriteError(Exception e, ErrorCategory category, object target) instead.")]
protected void WriteError(
    ErrorRecord errorRecord
)

Parameters

  • errorRecord
    Type: ErrorRecord