MediaSourceAppServiceConnection(AppServiceConnection) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 类的实例。