单项选择题
You upgrade a Windows Forms application to Microsoft .NET Framework 4. The application was developed
by using a previous version of the .NET Framework. The application uses the Code
Access Security (CAS) policy for file access.
When the application is executed, you receive the following exception:
"NotSupportedException: This method uses CAS policy, which has been obsoleted by the .NET Framework."
You need to resolve the error.
What should you do?()
A.
B.
C.
D.
相关考题
-
单项选择题
You use Microsoft .NET Framework 4 to create an application. The application contains a partially trusted client assembly and a server assembly. You create a custom sandboxed application domain. You need to ensure that the application can be executed in a partial-trust environment. What should you do?()
A. Apply the following attribute to the server assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=VisibleToAllHosts)]
B. Apply the following attribute to the server assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=NotVisibleByDefault)]
C. Apply the following attribute to the client assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=VisibleToAllHosts)]
D. Apply the following attribute to the client assembly. [assembly: AllowPartiallyTrustedCallers(PartialTrustVisibilityLevel=NotVisibleByDefault)] -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Forms application. You created a new application, you then wrote the code below: Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture; Which of the following options are TRUE?()
A. The user interface will make use of the currently configured culture settings in the Control Panel at present.
B. The user interface will make use of new culture settings.
C. The user interface will have no culture settings.
D. The user interface will make use of the culture settings that were installed with the operating system. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Forms application. You need to allow the user interface to use the currently configured culture settings in the Control Panel. Which code segment should you use?()
A. Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
B. Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture;
C. Thread.CurrentThread.CurrentUICulture = CultureInfo.InstalledUICulture;
D. Thread.CurrentThread.CurrentCulture = CultureInfo.InstalledUICulture;
