AsyncState Property
Collapse the table of content
Expand the table of content

NameResolutionResult.AsyncState Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a user-defined object that contains information about the operation.

Namespace:  Microsoft.Phone.Net.NetworkInformation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public Object AsyncState { get; }

Property Value

Type: System.Object
The user-defined object.

The user passes the AsyncState object to the ResolveHostNameAsync method in the context parameter. The object is stored internally and then passed back to methods invoked by NameResolutionCallback delegates when the asynchronous operation completes.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft