搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

You&#8194;are&#8194;creating&#8194;a&#8194;Windows&#8194;Communication&#8194;Foundation&#8194;(WCF)&#8194;service&#8194;that&#8194;implements&#8194;the&#8194;following&#8194;service&#8194;contract.&#8194;<servicecontract()>&#8194;Public&#8194;Interface&#8194;IOrderProcessing&#8194;<operationcontract()>&#8194;Sub&#8194;ApproveOrder(ByVal&#8194;id&#8194;As&#8194;Integer)For&#8194;interactive&#8194;and&#8194;self-paced&#8194;preparation&#8194;of&#8194;exam&#8194;70-513,&#8194;try&#8194;our&#8194;practice&#8194;exams.&#8194;Practice&#8194;exams&#8194;also&#8194;include&#8194;self&#8194;assessment&#8194;and&#8194;reporting&#8194;features!End&#8194;Interface&#8194;You&#8194;need&#8194;to&#8194;ensure&#8194;that&#8194;only&#8194;users&#8194;with&#8194;the&#8194;Manager&#8194;role&#8194;can&#8194;call&#8194;the&#8194;ApproveOrder&#8194;method.&#8194;What&#8194;should&#8194;you&#8194;do?()&#8194;</operationcontract()></servicecontract()

A、 In the method body, check the Rights.PosessesProperty property to see if it contains manager.

B、 Add a PrincipalPermission attribute to the method and set the Roles property to Manager.

C、 Add a SecurityPermission attribute to the method and set the SecurityAction to Demand.

D、 In the method body, create a new instance of WindowsClaimSet.

更多“You&#8194;are&#8194;creating&#8194;a&#8194;Windows&#8194;Communication&#8194;Foundation&#8194;(WCF)&#8194;service&#8194;that&#8194;implements&#8194;the&#8194;following&#8194;service&#8194;contract.&#8194;<servicecontract()>&#8194;Public&#8194;Interface&#8194;IOrderProcessing&#8194;<operationcontract()>&#8194;Sub&#8194;ApproveOrder(ByVal&#8194;id&#8194;As&#8194;Integer)For&#8194;interactive&#8194;and&#8194;self-paced&#8194;preparation&#8194;of&#8194;exam&#8194;70-513,&#8194;try&#8194;our&#8194;practice&#8194;exams.&#8194;Practice&#8194;exams&#8194;also&#8194;include&#8194;self&#8194;assessment&#8194;and&#8194;reporting&#8194;features!End&#8194;Interface&#8194;You&#8194;need&#8194;to&#8194;ensure&#8194;that&#8194;only&#8194;users&#8194;with&#8194;the&#8194;Manager&#8194;role&#8194;can&#8194;call&#8194;the&#8194;ApproveOrder&#8194;method.&#8194;What&#8194;should&#8194;you&#8194;do?()&#8194;</operationcontract()></servicecontract()”相关的问题
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服