题目内容

You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.[ServiceContract]public interface IOrderProcessing { [OperationContract] void ApproveOrder(int id);}You need to ensure that only users with the Manager role can call the ApproveOrder method. What should you do?()

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. Use the FindClaims method to locate a claimType named Role with a right named Manager

查看答案
更多问题

怀孕5个月不小心摔跤流产了,能休息多久?包含法定节假日吗?

中侧梁垂直弯曲超过()mm或横向弯曲超过100mm的客车可申请报废。

A. 50
B. 100
C. 150
D. 200

在SET购物流程中,不只用到了数字签名技术,也用到了双重签名技术。

A. 正确
B. 错误

《豌豆上的公主》中王后给豌豆公主铺了多少床垫子,多少床鸭绒被()

A. 20;10
B. 20;20
C. 10;10
D. 10;20

答案查题题库