AppServiceTriggerDetails Class
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.
Represents details associated with the background task for the app service. App services enable app-to-app communication by allowing you to provide services from your Universal Windows app to other Universal Windows app.
public ref class AppServiceTriggerDetails sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppServiceTriggerDetails final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppServiceTriggerDetails final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppServiceTriggerDetails
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppServiceTriggerDetails
Public NotInheritable Class AppServiceTriggerDetails
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
To get the AppServiceTriggerDetails for an app service, use the IBackgroundTaskInstance.TriggerDetails property.
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | IsRemoteSystemConnection |
1709 | 16299 | CheckCallerForCapabilityAsync |
1903 | 18362 | CallerRemoteConnectionToken |
Properties
AppServiceConnection |
Gets the connection to the endpoint of the other app service. |
CallerPackageFamilyName |
Gets the name of the package family for the client app that called the background task for the app service. |
CallerRemoteConnectionToken |
A string token which can be used to connect back to caller of a remote app service via RemoteSystemConnectionRequest.CreateFromConnectionToken. |
IsRemoteSystemConnection |
Gets whether the client app that called the background task for the app service is on another device. |
Name |
Gets the name of the app service. |
Methods
CheckCallerForCapabilityAsync(String) |
Determines whether the caller of the app service has the specified capability. |