You work as a Software Developer for uCertify Inc. The company uses Visual Studio .NET as its application development platform. You are creating an application that uses isolated storage to store user preferences using the .NET Framework. You use several assemblies for different purpose in the application. The application will be used by multiple users on the same computer. You are required to create a directory named MyPrefer in the isolated storage area that is scoped to the current Microsoft Windows identity and assembly. Which of the following code segments will you use to accomplish the task?

Options
- IsolatedStorageFile store;store = IsolatedStorageFile.GetMachineStoreForAssembly();store.CreateDirectory("MyPrefer");
- IsolatedStorageFile store;store = IsolatedStorageFile.GetUserStoreForApplication();store.CreateDirectory("MyPrefer");
- IsolatedStorageFile store;store = IsolatedStorageFile.GetUserStoreForAssembly();store.CreateDirectory("MyPrefer");
- IsolatedStorageFile store;store = IsolatedStorageFile.GetMachineStoreForApplication();store.CreateDirectory("MyPrefer");


CORRECT ANSWER : IsolatedStorageFile store;store = IsolatedStorageFile.GetUserStoreForAssembly();store.CreateDirectory("MyPrefer");

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement