WiFiConnectionStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Note
Some information relates to pre-released product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API will be affected by upcoming changes to operating system behavior, planned for fall 2024. For more info, see Changes to API behavior for Wi-Fi access and location.
Status of the connection attempt.
public enum class WiFiConnectionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WiFiConnectionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WiFiConnectionStatus
var value = Windows.Devices.WiFi.WiFiConnectionStatus.unspecifiedFailure
Public Enum WiFiConnectionStatus
- Inheritance
-
WiFiConnectionStatus
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
UnspecifiedFailure | 0 | Connection failed for a reason other than those in this list. |
Success | 1 | Connection succeeded. |
AccessRevoked | 2 | Connection failed because access to the network has been revoked. |
InvalidCredential | 3 | Connection failed because an invalid credential was presented. |
NetworkNotAvailable | 4 | Connection failed because the network is not available. |
Timeout | 5 | Connection failed because the connection attempt timed out. |
UnsupportedAuthenticationProtocol | 6 | Connection failed because the authentication protocol is not supported. |