Locked Custom HealthVault datatypes

  • Friday, August 21, 2009 2:52 PM
     
     
    hey ,
    i need some help , i don't know how to use the custom type , i create class that just like the custom datatype in the msdn .... bas i don't know how to use it ..
    this class contains the properties , parseXML , writeXML ...
    also when i regiter the type id i have an error
    ItemTypeManager.RegisterTypeHandler(new Guid("a5033c9d-08cf-4204-9bd3-cb412ce39fc0"), typeof( CustomType), true)
    error in Typeof(customtype)  "custom type is type that can't be used as exception "

    i don't know where to use the custom time and where to regiter it in the same class or in the page that use ...

    thanx for help

    best regards
       

All Replies

  • Monday, August 24, 2009 4:34 PM
     
     Answered

    You can extend a built-in data type as well can create a custom data type which depends on your need. Please refer the following

    Extending Data Type:
    Eric blog: http://blogs.msdn.com/ericgu/archive/2009/03/13/introduction-to-healthvault-development-10-adding-additional-data-to-healthvault.aspx
    MSDN help: http://msdn.microsoft.com/en-us/healthvault/bb968876.aspx

    Custom Data Type:
    MSDN help: http://msdn.microsoft.com/en-us/healthvault/bb968869.aspx

    Hope this helps

    Thank you,

    Anish Ravindran