System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForAssembly C# (CSharp) Method

GetUserStoreForAssembly() public static method

public static GetUserStoreForAssembly ( ) : IsolatedStorageFile
return IsolatedStorageFile
        public static IsolatedStorageFile GetUserStoreForAssembly()
        {
            return GetStore(IsolatedStorageScope.Assembly | IsolatedStorageScope.User);
        }

Same methods

IsolatedStorageFile::GetUserStoreForAssembly ( ) : System.IO.IsolatedStorage.IsolatedStorageFile

Usage Example

        /// <summary>
        ///     It serializes dictionary in binary format and stores it in a binary file.
        /// </summary>
        public void Save()
        {
            //BRIDGETODO : implemente the code below
#if !BRIDGE
            // IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null);
            IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForAssembly();

            Stream stream = new IsolatedStorageFileStream(Filename, FileMode.Create, isoStore);
            try
            {
                // Serialize dictionary into the IsolatedStorage.
                Formatter.Serialize(stream, AppDictionary);
            }
            finally
            {
                stream.Close();
            }
#endif
        }
All Usage Examples Of System.IO.IsolatedStorage.IsolatedStorageFile::GetUserStoreForAssembly