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. IsolatedStorageFile^ store;store = IsolatedStorageFile::GetUserStoreForAssembly();store-
>CreateDirectory(“Preferences”);
B. IsolatedStorageFile^ store;store =
IsolatedStorageFile::GetMachineStoreForAssembly();store->CreateDirectory(“Preferences”);
C. IsolatedStorageFile^ store;store = IsolatedStorageFile::GetUserStoreForDomain();store-
>CreateDirectory(“Preferences”);
D. IsolatedStorageFile^ store;store =
IsolatedStorageFile::GetMachineStoreForApplication();store-
>CreateDirectory(“Preferences”);
Answer: A
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. IsolatedStorageFile^ store;store = IsolatedStorageFile::GetUserStoreForAssembly();store-
>CreateDirectory(“Preferences”);
B. IsolatedStorageFile^ store;store =
IsolatedStorageFile::GetMachineStoreForAssembly();store->CreateDirectory(“Preferences”);
C. IsolatedStorageFile^ store;store = IsolatedStorageFile::GetUserStoreForDomain();store-
>CreateDirectory(“Preferences”);
D. IsolatedStorageFile^ store;store =
IsolatedStorageFile::GetMachineStoreForApplication();store-
>CreateDirectory(“Preferences”);
Answer: A
No comments:
Post a Comment