使用UpdateItem更新Weight项 [英] Using UpdateItem to update Weight item
问题描述
您好,我想知道如何使用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在之前的帖子中讨论过这个问题。
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.
这篇关于使用UpdateItem更新Weight项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!