当前位置:MCPD(70-536)题库

问题:

[单选]

您正在开发的应用程序将使用自定义身份验证和基于角色的安全性。您需要编写要运行库将一个未经身份验证的主体对象分配给每个运行的线程的代码段。您应该使用哪个代码段?()

A . A
B . B
C . C
D . D

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application.  You have a company logo that must appear on multiple forms in the application.   The logo design changes frequently.  You need to ensure that when the logo image is changed, you only need to update a single location.  What should you do?() Define the image as a page resource.。 Define the image as an application resource.。 Save the image on a network drive.。 Include the image as an embedded resource.。 You are the network administrator for your company. All network servers run Windows Server 2003. Server1 hosts highly confidential files. The Disk Management console for Server1 is shown in the exhibit. (Click the Exhibit button.) You need to ensure the security of all files on Server1. In the event of disk failure, you need to minimize the time required to make these files available again. You also need to improve file system performance. Which two actions should you perform?() (Each correct answer presents part of the solution. Choose two.) Configure the unallocated disks in a RAID-0 configuration.。 Configure one of the unallocated disks in a RAID-1 configuration.。 Store a shadow copy of disk C on one of the unallocated disks.。 Configure the unallocated disks as an extended volume.。 Convert the disks to basic disks.。 Convert the disks to dynamic disks.。 2015年,某高速公路项目招标,购买招标文件时间为8月23日,招标文件载明的下列活动时间中,合法的是()。 出售招标文件的截止日期为8月25日。 提交招标文件的截止日期为9月13日。 开标时间为9月14日。 投标有效期截止于9月13日。 脆性断裂 管网送气前,应用氮气置换管内空气,氧气含量应小于()%。 18。 20。 1。

您正在开发的应用程序将使用自定义身份验证和基于角色的安全性。您需要编写要运行库将一个未经身份验证的主体对象分配给每个运行的线程的代码段。您应该使用哪个代码段?()

参考答案:

  参考解析

此题目考察的是PrincipalPolicy.类。指定应该如何为应用程序域创建用户和标识对象。默认为UnauthenticatedPrincipal。未经身份验证的主体对象有三个值: NoPrincipal不应该创建任何用户或标识对象。 UnauthenticatedPrincipal应该为未经身份验证的实体创建用户和标识对象。未经身份验证的实体的Name设置为空字符串(""),IsAuthenticated设置为false。 WindowsPrincipal应该创建反映与当前执行线程相关的操作系统标记的用户和标识对象从题目来看是未经身份验证的用户,所以只有D答案正确。

在线 客服