[UWP] [C#]在Windows运行时组件项目中读取复合值。 [英] [UWP][C#]Reading Composite values in Windows runtime component project.

查看:65
本文介绍了[UWP] [C#]在Windows运行时组件项目中读取复合值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

 我有一个后台任务,当我们在系统中更改时区时触发。此backgorund任务将调用在Windows运行时组件项目中可用的触发器方法。

  i have one background task which triggers when we change timezone in system .This backgorund task will call Trigger method which is available in windows run time component project.

 基本上我们有两个项目,一个是UWP应用程序(主UI),另一个是Windows运行时组件项目(用于后台进程)。

  basically we have two project , one is  UWP application(main UI) and another one is windows run time component project(for background process).

我们在"..."中设置了一些值。的 ApplicationDataCompositeValue "使用下面的代码,当我们尝试在触发器方法中检索相同的内容时,在Windows运行时项目中。我们将值变为Null。可以有人
为此提供一些解决方案。

we are setting some values in "ApplicationDataCompositeValue" using below code,when we try to retrieve the same in trigger method inside which is there in  windows runtime project.we are  getting value as Null. can someone provide some resolution for this.

请认为这是紧急的。

Windows.Storage.ApplicationDataCompositeValue composite = 
    new Windows.Storage.ApplicationDataCompositeValue();
composite["intVal"] = 1;
composite["strVal"] = "string";

localSettings.Values["exampleCompositeSetting"] = composite;

推荐答案

团队,

任何人都可以向我们提供有关上述问题的最新信息。请认为这很紧急,因为我们需要尽快为我们的要求提供解决方案。

Could any one give us an update on the above explained issue. Kindly consider this as urgent as we need a solution for this as soon as possible for our requirement.

期待您的合作。

谢谢。


这篇关于[UWP] [C#]在Windows运行时组件项目中读取复合值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆