微软MCAD 70-310 实战百题
题目内容

You are creating an XML Web service named InventoryService for a nationwide clothing retailer company. The service provides near real-time inventory information to individual store managers by using a virtual private network(VPN).InventoryService exposes a Web method named Retrievelnventory that returns inventory information to the caller. You configure Internet Information Services(IIS) and InventoryService to use Integrated Windows authentication.You need to write code in InventoryService to ensure that only members of the Manager group can access Retrievelnventory.

2021-12-25

A.To the 〈authorization〉 section of the We

B.config file, add the following element:Callow roles="Manager" />B.To the 〈authorization〉 section of the Web.config file, add the following element:

C.In Retrievelnventory, add the following code segment: If User.Identity.Name.Equals("Manager") Then'Code to retrieve inventory data goes here.End If

D.In Retrievelnventory, add the following code segment: If User.Identity.AuthenticationTyp

E.Equals("Manager”} Then1Code to retrieve inventory data goes here.End If

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端