当前位置:MCTS(70-513)题库

问题:

[单选] 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

弹性金属塑料瓦比巴氏合金瓦瓦温低(在同等条件下的水轮发电机)的主要原因是什么? 90年代以后,中国文坛上出现了以“冷面书写生存真实的原生态”为标榜的()。 短行程单相交流制动电磁铁的周围环境温度不许超过() 33℃。 32℃。 35℃。 30℃。 You are working on an existing Web site. You need to secure the Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be sent back to the page that they originally requested. Which code segment should you use? () In the Web.config file: <authorization> <deny users="?" /></authorization> On each page in the Web site: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Load FormsAuthentication.Initialize() End Sub。 On each page in the Web site: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Load FormsAuthentication RedirectToLoginPage("login.aspx") End Sub。 On each page in the Web site: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Load Response.Redirect("login.aspx") End Sub。 In the Web.config file: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /></authentication>。 根据我国现行规定,筹集建设项目资本金的方式可以是()。 发行股票和债券。 银行贷款和发行债券。 合作经营和发行债券。 发行股票和合作经营。 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?()
参考答案:

  参考解析

本题暂无解析

在线 客服