This topic has not yet been rated - Rate this topic

NameResolutionResult Class

Windows Phone

March 22, 2012

Contains the result of an attempt to asynchronously resolve a host name.

System.Object
  Microsoft.Phone.Net.NetworkInformation.NameResolutionResult

Namespace:  Microsoft.Phone.Net.NetworkInformation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class NameResolutionResult
<NameResolutionResult .../>

The NameResolutionResult type exposes the following members.

  Name Description
Public method NameResolutionResult Initializes a new instance of the NameResolutionResult class.
Top
  Name Description
Public property AsyncState Gets a user-defined object that contains information about the operation.
Public property HostName Gets the host name that was submitted to be resolved.
Public property IPEndPoints Gets IP addresses for the HostName, if the operation succeeded.
Public property NetworkErrorCode Gets a value that indicates whether an error occurred.
Public property NetworkInterface Gets the network interface that was used to resolve the host name.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Top

NameResolutionResult contains the result of calling ResolveHostNameAsync. NameResolutionResult objects are passed to methods invoked by NameResolutionCallback delegates when the asynchronous operation completes.

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)