首页 > 计算机类考试> 其他
题目内容 (请给出正确答案)
[主观题]

You are creating a Windows Communication Foundation (WCF) service that implements the foll

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

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改