单项选择题 You are testing a newly developed method named PersistToDB. This method accepts a parameter of type EventLogEntry. This method does not return a value.You need to create a code segment that helps you to test the method. The code segment must read entries from the application log of local computers and then pass the entries on to the PersistToDB method. The code block must pass only events of type Error or Warning from the source MySource to the PersistToDB method. Which code segment should you use?()
单项选择题 您正在开发的应用程序使用基于角色的安全性。用下面的代码启动过程中,被配置应用程序域在启动过程中形成,它的主要策略(代码段为如下):AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);你需要为你的应用程序中其中的一个方法限制访问,以便只有本地Administrators组的成员可以调用该方法。应放置方法的哪一个属性?()
单项选择题 选择正确的选项()