可学答题网 > 问答 > MCTS(70-513)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are creating a Windows Communicati


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
参考答案
参考解析:
分类:MCTS(70-513)题库
相关推荐

1、You have a secured Windows Communicati

You have a secured Windows Communication Foundation (WCF) service. You need to track unsuccessful attempts to access the service. What should yo...

2、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use ...

3、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding. New audit requirements dictate that callers must be aut...

4、You are creating a DataTable. You use

You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)01 Dat...

5、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX).You have the following requirements: You...

6、You are hosting a Windows Communicati

You are hosting a Windows Communication Foundation (WCF) service under Microsoft Interent Information Services (IIS) 7.0.You have set up a web s...