NetworkException Constructor

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

Initializes a new instance of the NetworkException class using the supplied network error.

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

Syntax

Public Sub New ( _
    error As NetworkError _
)
public NetworkException(
    NetworkError error
)

Parameters

Remarks

The NetworkException constructor sets the NetworkErrorCode property to error.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

NetworkException Class

Microsoft.Phone.Net.NetworkInformation Namespace