コード例 #1
0
        public async Task SaveAsync(string filename, string content)
        {
            if (filename == null)
            {
                throw new ArgumentNullException("filename");
            }
            if (content == null)
            {
                throw new ArgumentNullException("content");
            }

            await WinIsolatedStorage.AppendTextAsync(filename, content);
        }
コード例 #2
0
        public async Task DeleteAsync(string filename)
        {
            await WinIsolatedStorage.DeleteAsync(filename);

            await WinIsolatedStorage.AppendTextAsync(filename, string.Empty);
        }