0
저는 Windows Phone 개발에서 새로운입니다. 이제 격리 된 저장 장치 설정에 대해 연구하려고합니다. 격리 된 저장 장치 설정에 대해 봤는데 이해할 수있는 샘플을 만들었습니다. 그러나 그것은 컴파일 오류를 보여줍니다. 나는 그것의 아주 간단한 오류를 안다. 라인격리 된 저장소 설정 문제
var names = IsolatedStorageSettings.ApplicationSettings; // Here it showing an error that
에서
" 'ApplicationSettings는'네임 스페이스 '하는 IsolatedStorageSettings'에 존재하지 않는 형식 또는 네임 스페이스 이름 (당신은 어셈블리 참조가?)".클래스 라이브러리를 가져 왔습니다. 그러나 여전히 문제가 존재합니다.
아래 코드를 붙여 넣었습니다.
Thankx. 당신이 포함 된 네임 스페이스 클래스 "System.IO.IsolatedStorage.IsolatedStorageSettings"
를 오버라이드 (override)되는 응용 프로그램에 동일한 네임 스페이스 이름을 제공하려고 노력으로 귀하의 코드 "네임 스페이스하는 IsolatedStorageSettings"에서using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.IO.IsolatedStorage;
using System.IO;
namespace IsolatedStorageSettings
{
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
var names = IsolatedStorageSettings.ApplicationSettings;
names.Add("myName", "Developer John");
displayText.Text = names["myName"].ToString();
}
}
}
Thankx santhu. 그게 문제 였어 .. – Arun
만약 내가 이미지와 몇 가지 변수를 함께 저장하고 싶다면? – CodeGuru