locked
How to use High priority setting app settings

    Question

  • Hi all,

    http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.roamingsettings.aspx
    Follow this page,
    I want use HighPriority in my app.
    But, I have two questions.

    Question1:
    HighPriority's value should be int or String? large number or small number?
    What's the function that about HighPriority's value?
    ex: 
    RoamingSettings->Values->Insert("HighPriority", PropertyValue::CreateString("1"));

    Question2:
    follow this link
    "High priority roaming works only with one setting, so if you need to roam multiple pieces of data such as an article and a page number you can use a composite value"
    Depend on this article, the roaming file and HighPriority it's no correlation

    Thanks

    Tuesday, July 10, 2012 7:00 AM

Answers

  • As of now, HighPriority is associated to RoamingSettings. "HighPriority" is a KEY for a value (which can be your playlist file). The storage for Roaming Settings is designed to facilitate roaming data usage independent of a particular server, so that users can have a seamless experience wherever they are. You can directly modify the roaming settings data using the ApplicationData::Current->RoamingFolder object.

    -Sagar

    • Marked as answer by woody tk Wednesday, July 18, 2012 9:40 AM
    Friday, July 13, 2012 5:55 PM
    Moderator

All replies

  • Hi,

    For first question, this is how you can create a HighPriority simple value-setting pair :-

    ApplicationDataContainer roamingSettings =  ApplicationData.Current.RoamingSettings;
    roamingSettings.Values["HighPriority"] = "Sample_High_Priority_value";

    For second question, HighPriority is one setting, which means can contain either a simple or a composite object.

    An HighPriority composite object can be made in the following way :-

    ApplicationDataContainer roamingSettings =  ApplicationData.Current.RoamingSettings;
    roamingSettings.Values["HighPriority"] = "Sample_High_Priority_value";
    ApplicationDataCompositeValue composite = new ApplicationDataCompositeValue();
    composite["HP_settingName1"] = 1; // example value
    composite["HP_settingName2"] = "world"; // example value

    roamingSettings.Values["HighPriority"] = composite;

     

    -Sagar 

    Tuesday, July 10, 2012 6:48 PM
    Moderator
  • Hi,

    Thanks for your reply.

    For first question 2,
    If I want roaming a playlist file,
    I can put this file in ApplicationData::Current->RoamingFolder.
    So, the HighPriority and roaming file is no correlation?

    Add one question,
    Question3:
    Where the location of our roaming file or settings in MSFT server?
    Could I remove these by Browser or other tools?

    For example:
    I have roaming a playlist file between two devices.
    So, I know that the MSFT server should be have my playlist file
    Can I remove this file by other path(Browser...etc)?

    Thanks

    Wednesday, July 11, 2012 8:53 AM
  • As of now, HighPriority is associated to RoamingSettings. "HighPriority" is a KEY for a value (which can be your playlist file). The storage for Roaming Settings is designed to facilitate roaming data usage independent of a particular server, so that users can have a seamless experience wherever they are. You can directly modify the roaming settings data using the ApplicationData::Current->RoamingFolder object.

    -Sagar

    • Marked as answer by woody tk Wednesday, July 18, 2012 9:40 AM
    Friday, July 13, 2012 5:55 PM
    Moderator