使用UpdateItem更新Weight项 [英] Using UpdateItem to update Weight item

查看:76
本文介绍了使用UpdateItem更新Weight项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想知道如何使用xml更新HealthVault中的现有条目。我有


重量objType =(重量)personObj.SelectedRecord.GetItem(ItemID,HealthRecordItemSections.Xml);


而不是设置值


objType .Value.Kilograms = 50;


我想将以下xml传递给它


< weight>< when>< date>< y> 2011< / Y'GT;< M→3< /米GT;< d取代; 15℃; / d取代;< /日期>< /时><值><公斤→50< / kg的GT;< /值GT;< / weight>


如何将xml设置为Weight对象并更新?


解决方案

S omeone在之前的帖子中讨论过这个问题。


http://social.msdn.microsoft.com/Forums/en-US/healthvault/thread/8afd42da-5d4f-4f0b-8a6a-f116f23bb9ce


Hi, I would like to know how do i update an existing entry in HealthVault using xml. I have

Weight objType = (Weight)personObj.SelectedRecord.GetItem(ItemID, HealthRecordItemSections.Xml);

Rather than setting values like

objType .Value.Kilograms = 50;

i would like to pass following xml to it

<weight><when><date><y>2011</y><m>3</m><d>15</d></date></when><value><kg>50</kg></value></weight>

How can i set the xml to Weight object and update it??

解决方案

Someone was talking about this in a n earlier thread.

http://social.msdn.microsoft.com/Forums/en-US/healthvault/thread/8afd42da-5d4f-4f0b-8a6a-f116f23bb9ce


这篇关于使用UpdateItem更新Weight项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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