Get or Set Personalization Key Values

The PersonalizationParameters class is generated automatically for managing personalization keys.

The following code provides an example on how to set a personalization key, and pass an array of values and array of objects:

PersonalizationParameters pp = SampleAppDB.GetPersonalizationParameters();
pp.MyIntPK = 10002;
pp.Save();
Sybase.Collections.IntList il = new Sybase.Collections.IntList();
il.Add(10001);
il.Add(10002);
pp.MyIntListPK = il;
pp.Save();
Sybase.Collections.GenericList<MyData> dl = new Sybase.Collections.GenericList<MyData>(); //MyData is a structure type defined in tooling
MyData md = new MyData();
md.IntMember = 123;
md.StringMember = "abc";
dl.Add(md);
pp.MyDataListPK = dl;
pp.Save();

If a synchronization parameter is personalized, you can overwrite the value of that parameter with the personalization value.

Note: For detailed description on personalization key usage, see the Sybase Unwired Platform online help.