Compartir a través de


AsyncCompletedEventArgs Constructor (Exception, Boolean, Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the AsyncCompletedEventArgs class.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Sub New ( _
    error As Exception, _
    cancelled As Boolean, _
    userState As Object _
)
public AsyncCompletedEventArgs(
    Exception error,
    bool cancelled,
    Object userState
)

Parameters

  • error
    Type: System.Exception
    Any error that occurred during the asynchronous operation.
  • cancelled
    Type: System.Boolean
    A value that indicates whether the asynchronous operation was canceled.
  • userState
    Type: System.Object
    The optional user-supplied state object that is used to identify the task that raised the Completed event.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.