NetworkException Constructor
Collapse the table of content
Expand the table of content

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)

public NetworkException(
	NetworkError error
)

Parameters

error
Type: Microsoft.Phone.Net.NetworkInformation.NetworkError
The error code that indicates the error that occurred.

The NetworkException constructor sets the NetworkErrorCode property to error.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft