App.config file using persistent, should I use a vector?

Hi, I need to have a configuration file. I want to use persistent.

in the example of the A13, they use a vector of objects and send it to setElements().

If I only need a class object to be saved, if I have to use a vector or I can send the object to setElement?

OK, I've kept a string [] instead of a class and it works, i is based on the example provided in the blackberrry development guide.

Tags: BlackBerry Developers

Similar Questions

  • How to change the tag add value in app.config using c#

    Hi all

    Please help me to change the value of a value by using c# code.

    I tried to google.

    App.config code:

    ----------------------------

    <>

    XML version = "1.0" encoding = "utf-8"? >

    Configuration >

    appSettings >

    Add key = "Lastmodifiedtimeforfile" value = "16/05/12 13:57:12" / > "

    -----------------

    c# code

    ----------------

    System.Configuration.

    Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);

    config. [AppSettings.Settings

    "Lastmodifiedtimeforfile"]. Value = "16/05/12 16:15:42;

    config. Save)

    ConfigurationSaveMode.Modified); ConfigurationManager.RefreshSection ("appSettings");

    But when I pass my code and the execute method, I do not see the change of all configuration files (App.config,. exe.config, or. vshost.exe.config).

    Even I tried the following code:

    XmlDocument xmlDoc = new XmlDocument();

    xmlDoc.Load (AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);

    foreach (XmlElement element xmlDoc.DocumentElement)
    {
    If (element. Name.Equals ("appSettings"))
    {
    foreach (XmlNode node in the element. ChildNodes)
    {
    If (node. Attributes [0]. Value.Equals ("Lastmodifiedtimeforfile"))
    {
    node. Attributes [1]. Value = DateTime.Now.ToString;
    }}}}

    xmlDoc.Save (AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);

    But it does not work. Please help me its urgent.

    Kind regards

    Selva.C

    Hi Selva,

    Thanks for posting your question in the Microsoft answers Forum.  I would suggest to repost your question in our MSDN forums:

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Cannot read AVI file using video app

    Hi team, support

    I can't read the AVI file using video app (version 9.2.A.0.6) error message: "cannot play video".

    Whereas, in the file AVI can play with VLC app (third-party application).

    I bought Xperia Z1 because I thought that it can play AVI video files (see:http://www.sonymobile.com/global-en/products/phones/xperia-z1/specifications/ ), please please do not ask me to use another third-party application.

    Info: model: c6902, Lollipop: 5.0.2 Build number: 14.5.A.0.270

    Thank you.

    As I've mentioned before, AVI is a container format when it comes to videos. The information you find in the paper is also also the decoder MPEG-4 format. I just tried an AVI file with MPEG-4 codec here, and it works very well. But if you try to play an AVI file with another codec such as: JPEG, RGB or Cinepak, they probably won't work because they aren't supported codecs.

    You can always download a program on your computer that can check the information of your AVI file container. MediaInfo is an example of this program.

  • I keep getting these messages that do not allow to use a file. What should I change to have privileges for all functions?

    Original title: administrator Win7

    I have win7 and IE11 running on a HP 8540p.  I'm the only person authorized to use the laptop - I am the administrator.

    I keep getting these messages that do not allow to use a file.  What should I change to have privileges for all functions?

    The second file is not cooperating and was not deleted.

    "Not cooperating" can mean many different things. A real verbatim error message would be more useful. In the case of locked files, it is often possible to remove safe mode.

  • Combining three versions in a single backup file using the batch client/config file

    Hello again,

    Is there anyway to get three versions in a single backup file using a config file and the batch client, currently we have this Configuration file:

    [General]

    Operation = Multiple

    Username =

    Password =

    URL = net. TCP://localhost: 5210, Oracle, Drm, ProcessManager

    LogFileName=D:\DRM\VIPTBAU\LOG_FILES\logfile.log

    [Activities]

    OperationCount = 3

    Operation1 = VIP_DIMENSIONS

    Operation2 = ACCOUNT_RF

    Existence3 = ACCOUNT_BS

    [VIP_DIMENSIONS]

    Operation = Backupversiontofile

    Connection = MONTH_END_BACKUP

    VersionAbbrev = TESTPROJ_VIP_DIMENSIONS

    filename = VIP_DIMENSIONS

    [ACCOUNT_RF]

    Operation = Backupversiontofile

    Connection = MONTH_END_BACKUP

    VersionAbbrev = TESTPROJ_RF_ACCOUNT

    filename = VIP_DIMENSIONS

    [ACCOUNT_BS]

    Operation = Backupversiontofile

    Connection = MONTH_END_BACKUP

    VersionAbbrev = TESTPROJ_BS_ACCOUNT

    filename = VIP_DIMENSIONS


    which generates three separate files. We tried using a single operation and listing the 3 times of the VersionAbbrev, but that didn't work and also list the 3 versions in a VersionAbbrev.

    If anyone has any ideas they would be greatly appreciated

    See you soon

    Chris

    Hi Chris Harris-Oracle

    DRM client batch supports export several versions of a single file and restore it back. You must specify the defined version name and the delimiter.

    You can configure the cfg below the backup file

    [General]

    Operation = Multiple

    Username =

    Password =

    URL = net. TCP://localhost: 5210, Oracle, Drm, ProcessManager

    LogFileName=D:\DRM\VIPTBAU\LOG_FILES\logfile.log

    [Activities]

    OperationCount = 1

    OP1 = VIP_DIMENSIONS

    [VIP_DIMENSIONS]

    Operation = Backupversiontofile

    Connection = MONTH_END_BACKUP

    VersionAbbrev = TESTPROJ_VIP_DIMENSIONS, TESTPROJ_RF_ACCOUNT, TESTPROJ_BS_ACCOUNT

    filename = VIP_DIMENSIONS

    Delimiter = comma

    to restore

    [VIP_DIMENSIONS]

    Operation = RestoreVersionFromFile

    Connection = MONTH_END_BACKUP

    SourceVersionAbbrev = TESTPROJ_VIP_DIMENSIONS, TESTPROJ_RF_ACCOUNT, TESTPROJ_BS_ACCOUNT

    TargetVersionAbbrev = TESTPROJ_VIP_DIMENSIONS, TESTPROJ_RF_ACCOUNT, TESTPROJ_BS_ACCOUNT

    filename = VIP_DIMENSIONS

    Delimiter = comma

    Try it tested and it works very well

  • I can (Edit PDF files) using my account of the composition of cloud creative single-app for Acrobat Pro (one year)?

    I have account membership cloud creative single-app for Acrobat Pro (one year).

    Can I change my PDF files using this account?

    That's what Acrobat is designed to do

  • I want to create a PDF file.  What should Adobe I use?

    I want to create a PDF file.  What should Adobe I use?

    Adobe Acrobat

  • Creation Waveform TDMS file using the functions DDC_ in C 6.0?

    I'm trying to implement an export written in C 6.0. I can make the TDMS files using the DDC_ controls without any problem. But I can't understand how waveform TDMS files. I thought that if I added properties wf_ I should be able to define the waveform = Yes. But it seems to be more complicated than that.

    Here's what I work until now... (with the exception of the error handling to make it easier to see)

    DDC_CreateFile (sDestFileName, "TDMS", gszinfoline1, gszinfoline2, gszinfoline3, gszinfoline4, & hOutputFile);

    DDC_AddChannelGroup (hOutputFile, szGROUP_NAME, szGROUP_DESC, & hgroup)

    DDC_CreateChannelGroupPropertyTimestampComponents (hgroup,
    szCHANNEL_NAME,
    year (unsigned int),
    months (unsigned int).
    days (unsigned int).
    hours (unsigned int).
    minutes (unsigned int).
    wholeseconds (unsigned int),
    (double) fractionseconds);

    DDC_AddChannel (hgroup, DDC_Double, szCHANNEL_NAME, szCHANNEL_DESC, szCHANNEL_UNITS, & lphchannel);

    DDC_CreateChannelProperty (lphchannel, "wf_increment", DDC_Double, dInterval);
    DDC_CreateChannelProperty (lphchannel, 'wf_xname', DDC_String, 'Time');
    DDC_CreateChannelProperty (lphchannel, "wf_xunit_string", DDC_String, "s");
    DDC_CreateChannelProperty (lphchannel, "wf_start_offset", DDC_Double, 0,0);

    Any suggestions? (Details of this aid are intended for LV or completely absent)

    Thank you very much

    Don

    Hi Don,

    Thanks for the additional information.  After doing research a bit more, it seems that there are 3 required properties so that the property of waveform to be set to yes.  These are wf_start_offset, wf_increment and wf_samples.  If you add in a call such as the following, this should solve the problem:

    DDC_CreateChannelProperty (lphchannel, "wf_samples", DDC_Int32, 5);

    Just replace with the length of your table 5.

    Kind regards

  • Save the class file using XML

    Hi-

    I made a new class for LabVIEW, and I try to save a file using XML. Attached pictures show how to create the file and how I read it, and I get the error message. I tried a variety of different methods and nothing worked so far. I was wondering if anyone had any advice or examples to save a class to file via XML.

    In the meantime, I'll use the method described here:

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=215511&query.ID=672786#M215511

    but I would prefer XML for more usability later down the line.

    I also thought just not related to the group all the data structure, recording via XML and then just group it upward and writing to an instance of the class. This seems to be more work that needs to be necessary and should be redone every time I have change the class.

    Probably, it goes without saying that I am fairly new to LabVIEW so I hope this isn't a stupid error that is obvious to the vet...

    Thanks in advance,
    Nate

    First - Sorry for wany waste of time to download the wrong screenshot in the op.

    Second - I solved it! I was about to send a screenshot of my hierarchy for you to take a look at, but that made me think. I re-arranged my hierarchy; This solves the problem.

    Now, for all those who had the same problem (Error 1527):

    The first screenshot is my original project hierarchy, which did not work.

    The second is my hierarchy updated the project that solved the problem.

    Thanks for your help!

  • Is there a safe way to open a rar file using a windows program?

    original title: open rar files?

    downloaded a file that turned out be a rar file.

    Someone told me that I should never open rar files because they contain viruses.

    Is there a safe way to open a rar file using a windows program?

    I downloaded a file that turned out be a rar file.

    Someone told me that I should never open rar files because they contain viruses.

    Is there a safe way to open a rar file using a windows program?

    RAR files are not more likely to contain a virus or Malware any that any other file. (Assuming that you are not running a decent AV program).

    Read about RAR files here and you can download the RAR Extractor free Frog.
    http://download.CNET.com/free-RAR-extract-frog/3000-2250_4-10804840.html

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • How to change or open a pdf file. Ext file using Photo Gallary

    Hello

    My download files are save in pdf. ext files.  I'm unable to open these files using Windows Photo Gallery.  I tried to modify the PDF. file to a jpeg file and it would allow me to change the file.  So, how can I change all my download files that I can't open a file with a file position I can't open?

    Thank you

    I do not know if you are aware that the pdf files are normally open with Adobe Reader and intentionally try to use another application?  If this isn't the case, if you download the free Adobe Reader application, you should be able to open PDFs just by double-clicking it.  The following link has the free download (note - suggest you uncheck the "Yes - install McAfee Security Plan more - optional" before download): http://get.adobe.com/reader/

  • Read the files using BlackBerry device Simulator...

    In the device Simulator if you take a photo using the camera option it shows that it is saved as a .jpg file.

    I can read such a file using the FileConnection method? This file is real?

    Or should I use a real BlackBerry device to simulate it?

    Because what I'm looking for is to read the image stored in the device and attach it to an email and send it.

    But it seems as if this file is not accessible, even if I give the path of it.

    For example:

    FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/BlackBerry/picture/IMG00017.jpg");

    Can anyone give a solution for this?

    Third-party applications are not able to read the example of media (pictures, sounds, etc.) which is preinstalled on a BlackBerry handheld.  You should be able to read files created by the user or other applications.

  • Open files using its layer group name

    are there images to import the folder into photoshop cc option using its layer group name (the name of the image is already entered in the layer group) .so using the group name as a file name of the script need to open the document automatically.

    2016, use it at your own risk.

    #target photoshop

    If (app.documents.length > 0) {}

    the file;

    myDocument var = app.activeDocument;

    var thisName = myDocument.path;

    ////////////////////////////////////

    try {}

    var thisName = thisName+"/"+myDocument.activeLayer.name;

    If (queue (thisName) .exists == true & leader (thisName) .constructor! = folder) {app.open (File (thisName))}

    } catch (e) {}

    };

  • I saved my adobe files temporarily muse in my computer when I restart my PC I see not the mt files, please tell me how to recover my files and how to record my entire Web site file using save option.

    I saved my adobe files temporarily muse in my computer when I restart my PC I see not the mt files, please tell me how to recover my files and how to record my entire Web site file using save option.

    When you talk about 'temporarily' as record files in the temporary folder and then by restarting the machine will lose files. You can save the file in any location stored as reader or office and then reopen the case should show all of the content without any loss.

    If the files are deleted or lost there's no way to recover those, sorry if this is the case.

    Thank you

    Sanjit

  • Volumes of the App can be used without Horizon?

    Volumes of the app can be used without Horizon? It seems to be a case of using these features, not only for desktop computers. Say for R & D working with quick auto tests departments deploying the latest versions etc. Can a unique environment of vSphere be used? If so, these deployment tasks can be controlled by a PLC?

    Yes, and with other brokers. Volumes of app is also sold as a stand-alone product.

    More info in the FAQ.

    http://www.VMware.com/files/PDF/appvolumes/VMware-appvolumes-FAQ.PDF

Maybe you are looking for

  • Click on is no longer working in Safari

    Dear all, I have a 27 imac and since yesterday, it is therefore possible to use Safari. My first page when I open Safari's google news, so there are several links on the same page and when I move the link I can't click on it. I use a trackpad. I trie

  • Apple Mail has stopped while improving

    I was not able to use my mail since Dec. 30. ! Talk to seniors to Support Apple daily, but they are waiting for answer of Ireland engineers (or elsewhere)... I'm about to get totally freaked because I am an editor for the web-sites/magazines thre. I

  • Photosmart C4480 scan to iMac with OS 10.6.4

    Improved (strength) of the eMac (OS10.3.9) to an iMac (OS 10.6.4 My Photosmart C4480 print OK, but don't scan - 'scanner could not be initialized. The 'automatically' updated software only once; I've deleted and reinstalled from the original disk, bu

  • Missing ringtones on the Droid RAZR HD

    Second question (see the previous page to appreciate how new to this phone that I am!) I downloaded a notification tone that I had on my LG lucid and really liked... I sent the attachment to myself and copied to the folder ringtones... and, indeed, i

  • I am trying to install iTunes and it won't let me not except if I uninstall older versions of Hello and Apple software.

    Original title: I-Tunes help I am trying to install itunes and it won't let me not except if I uninstall older versions of the software Hello and apple. Do not know what is happening. Help!