You are writing an application that uses isolated storage to store user preferences.

You are writing an application that uses isolated storage to store user preferences. The
application uses multiple assemblies. Multiple users will use this application on the same
computer. You need to create a directory named Preferences in the isolated storage area that is
scoped to the current Microsoft Windows identity and assembly.
Which code segment should you use?

A. Dim objStore As IsolatedStorageFileobjStore =
    IsolatedStorageFile.GetUserStoreForAssemblyobjStore.CreateDirectory("Preferences")

B. Dim objStore As IsolatedStorageFileobjStore =
    IsolatedStorageFile.GetMachineStoreForAssemblyobjStore.CreateDirectory("Preferences")

C. Dim objStore As IsolatedStorageFileobjStore =
    IsolatedStorageFile.GetUserStoreForDomainobjStore.CreateDirectory("Preferences")

D. Dim objStore As IsolatedStorageFileobjStore =
    IsolatedStorageFile.GetUserStoreForApplicationobjStore.CreateDirectory("Preferences")


Answer: A

No comments:

Post a Comment