相关考题

单项选择题 你在 Certkiller 应用程序的开发工作. com。最近命名艾米沃尔什同开发人员创建实现自定义权限集的程序集。 Certkiller.com 已要求您测试此程序集。 通过将程序集复制到一个名为 Certkiller 的测试服务器启动-了微软的 SR15。安装.NET 2.0 框架。 您然后登录到 Certkiller-SR15 作为本地 Windows 管理员组的成员。 您运行程序集,并接收安全异常。 您执行略论所涉及的安全问题,并找到大会尚未被分配适当的权限才能运行。 您需要确保运行此程序集。 你应该做什么?()

单项选择题 您正在开发.NET Framework 2.0 应用程序上 Certkiller-WS554。您编写的应用程序的行号在下面的代码是只供参考: 01: Public Function ProcCount() As Integer 02: Dim envPerm As EnvironmentPermission = _ 03: New EnvironmentPermission( _ 04: EnvironmentPermissionAccess.Read, _ 05: "NUMBER_OF_PROCESSORS") 06: 'Add code segment here 07: Return Environment.ProcessorCount 08: End Function 在代码中的 ProcCount 方法将用于返回运行代码的计算机上的处理器数和方法的实现是完全透明的方法的调用方。你确保 ProcCount 方法已被授予访问环境变量的权限的代码的调用方可能没有权限访问的变量。为了能够成功调用 ProcCount 方法需要中的其他程序集的类。在行 06 至重写安全检查,虽然您确保任何您编写的代码不会影响已有您的代码的权限,您必须添加代码。 您应添加哪些代码段?()

单项选择题 You are creating a class that performs complex financial calculations. The class contains a method named GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate.You write serialized representations of the class.You need to write a code segment that updates the currRate variable with the current interest rate when an instance of the class is deserialized.  Which code segment should you use?()