AppServiceConnectionStatus 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.
Describes the status for the attempt that an app makes to open a connection to an app service by calling the AppServiceConnection.OpenAsync method. App service providers enable app-to-app communication by providing services that other Universal Windows app can consume.
public enum class AppServiceConnectionStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class AppServiceConnectionStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum AppServiceConnectionStatus
var value = Windows.ApplicationModel.AppService.AppServiceConnectionStatus.success
Public Enum AppServiceConnectionStatus
- Inheritance
-
AppServiceConnectionStatus
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
Success | 0 | The connection to the app service was opened successfully. |
AppNotInstalled | 1 | The package for the app service to which a connection was attempted is not installed on the device. Check that the package is installed before trying to open a connection to the app service. |
AppUnavailable | 2 | The package for the app service to which a connection was attempted is temporarily unavailable. Try to connect again later. |
AppServiceUnavailable | 3 | The app with the specified package family name is installed and available, but the app does not declare support for the specified app service. Check that the name of the app service and the version of the app are correct. |
Unknown | 4 | An unknown error occurred. |
RemoteSystemUnavailable | 5 | The device to which a connection was attempted is not available. |
RemoteSystemNotSupportedByApp | 6 | The app on the remote device does not support remote connections. It needs to specify SupportsRemoteSystems="true" on the appService extension in its AppXManifest to accept remote connections. |
NotAuthorized | 7 | The user for your app is not authorized to connect to the service. |
AuthenticationError | 8 | The operation failed due to unsuccessful account authentication. The user must re-validate the account to continue. |
NetworkNotAvailable | 9 | The operation failed due to lack of an internet connection. |
DisabledByPolicy | 10 | The operation failed, as the app service needed service or capabilities disabled by some policies on the local or remote device. |
WebServiceUnavailable | 11 | The operation failed because one or more necessary cloud services were temporarily unavailable. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | NotAuthorized |
1607 | 14393 | RemoteSystemNotSupportedByApp |
1607 | 14393 | RemoteSystemUnavailable |
2004 | 19041 | AuthenticationError |
2004 | 19041 | DisabledByPolicy |
2004 | 19041 | NetworkNotAvailable |
2004 | 19041 | WebServiceUnavailable |