Task.AsyncState Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets the state object supplied when the Task was created, or null if none was supplied.
Namespace: System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public ReadOnly Property AsyncState As Object
public Object AsyncState { get; }
Property Value
Type: System.Object
An System.Object that represents the state data that was passed in to the task when it was created.
Implements
Remarks
Cast the object back to the original type to retrieve its data.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also