存储自定义数据类型... [英] Storing Custom Data Type...

查看:91
本文介绍了存储自定义数据类型...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候:

我在代码中定义了以下类型:

I have defined following type in my code:

 


public class ANote : HealthRecordItem
{
	public String m_A;
	public String m_B;
	public String m_C;
	public HealthServiceDateTime m_when;

	public ANote()
		: base( new Guid( "59445a89-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ) )
	{

	}

	protected override void ParseXml( IXPathNavigable typeSpecificXml )
	{
		// my own implementation..
	}

	public override void WriteXml( XmlWriter writer )
	{
		// my own implementation
	}
}

推荐答案

您好,

请注意,对于客户数据类型,您必须始终在构造函数中使用GUID a5033c9d-08cf-4204-9bd3-cb412ce39fc0。有关详细信息,请参阅
MSDN帖子。请注意,这是

应用程序特定信息
,并确保已将其包含在您的应用程序规则中。

Please note that for custome data types you have to always use the GUID a5033c9d-08cf-4204-9bd3-cb412ce39fc0 in the constructor. Please refer to this MSDN post for detailed information. Please note that this is the Application Specific Information type and make sure that you have included it in your application rules.

希望这会有所帮助。如果您有任何问题或疑虑,请与我们联系。

Hope this helps. Please let me know if you have any questions or concerns

谢谢和问候,

Aneesh D。


这篇关于存储自定义数据类型...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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