MediaSourceAppServiceConnection(AppServiceConnection) 构造函数

定义

初始化 MediaSourceAppServiceConnection 类的新实例。

public:
 MediaSourceAppServiceConnection(AppServiceConnection ^ appServiceConnection);
 MediaSourceAppServiceConnection(AppServiceConnection const& appServiceConnection);
public MediaSourceAppServiceConnection(AppServiceConnection appServiceConnection);
function MediaSourceAppServiceConnection(appServiceConnection)
Public Sub New (appServiceConnection As AppServiceConnection)

参数

appServiceConnection
AppServiceConnection

一个 AppServiceConnection 对象,表示与应用服务的终结点的连接。

注解

通过将传递到后台任务的 Run 方法的 IBackgroundTaskInstance 对象的 TriggerDetails 属性转换为 AppServiceTriggerDetails 对象,然后访问 AppServiceConnection 属性,获取 AppServiceConnection 类的实例。

适用于