WP7 isolated storage series-1. Introduction to isolated storage

Source: Internet
Author: User

Recently, we have received many requirements for writing the isolated storage series. At first I wanted to write some long articles, but then I decided to write some simple and easy-to-understand solutions to the problem, which would be the best. So I started a series of short articles in the "WP7 isolated storage series", focusing on real practical examples with source code, rather than theoretical knowledge. I will try to clarify the isolated
Storage in Silverlight for WP7 is a key part. Below is a link to the series of articles:

·
WP7 isolated storage series-1. Introduction to isolated storage

·
WP7 isolated storage series-2. Create folders and files

·
WP7 isolated storage series-3. Use isolatedstoragesettings to store data

·
WP7 isolated storage series-4. Read and store text files

·
WP7 isolated storage series-5. Use xmlserializer to read and store XML files

·
WP7 isolated storage series-6. Use xmlwriter to read and store XML files

·
WP7 isolated storage series-7. Reading and storing images

·
WP7 isolated storage series-8. Read and store captured images

·
WP7 isolated storage series-9. Read and store binary files

·
WP7 isolated storage series-10. File Operations

·
WP7 isolated storage series-11. Suggestions and best practices

·
WP7 isolated storage series-12. open source database and help library files

This is the first article in the series, so I will explain what isolated storage is. (Note: This is the only article without examples, because before we start, we need to know the basic/concept of isolated storage ).

What is isolated storage?

Basically, isolated storage is used to store local data on Windows Phone 7. It indicates the folder structure of the storage Program (because the image link in the original text is invalid, the texture will not be mapped here ~ _~) :

Isolated storage can help us manage applications to create and maintain local storage. The architecture of mobile devices is similar to that of Silverlight-based Windows applications. All I/O operations are restricted in isolated storage, and there is no direct access to the underlying file system, which provides security, it also prevents unauthorized access and other program access from causing data corruption.

Note: If you have two programs that use the same data, the data will not be localized for any program. You have to use web service.

Note: The Windows Phone program does not have a mandatory quota, because each program has different requirements for this. Therefore, storage resources on mobile phones are limited, so programs should only store necessary data. When a Windows Phone has only 10% of the storage space left, it will receive a notification about this status, and sometimes even the entire program will stop working, this is not a good choice from the user's perspective.

You can use isolated srorage to perform different operations, such as writing a file, creating folders and files, reading data, and deleting files.

Basically, in Silverlight for Windows Phone 7, you can store data as follows:

·
Isolatedstoragesettings

· Create folders and files through isolated storage

· Database

This is a basic introduction to the "WP7 isolated storage series" series. We look forward to the following articles.

 

Link: http://www.windowsphonegeek.com/tips/all-about-wp7-isolated-storage--intro-to-isolated-storage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.