单项选择题 Certkiller .com网站使用一个叫做Application1的应用程序,他使用.NetFramework1.0版本进行编译。 这个应用程序当前运行在一个同时安装了.Net Framework 1.0和1.1版本的计算机上 你必须将程序重新部署到一台安装了1.1和2.0环境的新计算机上。你必须要确保程序会使用计算机上的1.1的.NetFramework中的类库。 你应该怎么做?()
单项选择题 You are developing a class library. Portions of your code need to access system environment variables. You need to force a runtime SecurityException only when callers that are higher in the call stack do not have the necessary permissions. Which call method should you use?()
单项选择题 You are developing a class library that will open the network socket connections to computers on the network. You will deploy the class library to the global assembly cache and grant it full trust. You write the following code to ensure usage of the socket connections. SocketPermission permission = new SocketPermission(PermissionState.Unrestricted); permission.Assert(); Some of the applications that use the class library might not have the necessary permissions to open the network socket connections.You need to cancel the assertion. Which code segment should you use?()