微软MCAD 70-310 实战百题
题目内容

You create a serviced component named StockQuote that implements the IStockQuote interface. The StockQuote class includes the following code segment:Public Class StockQuoteInherits ServicedComponent Implements IStockQuote Public Function GetQuote(stock as Ticker) as Price Implements IStockQuote.GetQuote 'Implementation code goes here.End Function End ClassYou want to secure StockQuote so that it can only be accessed by users in the Customers and Managers roles.Which actions should you take?(Each correct answer presents part of the solution. Choose two)

2021-12-25

A.To the StockQuote class, add the following attribute:

B.To the StockQuote class, add the following attribute: 〈Transaction(TransactionOption.Required)>

C.Implement the ISecurityCallContext COM interface in the StockQuote class. Implement the IsCallerlnRole method for the Customers and Managers roles

D.To the StockQuote class, add the following attributes:

E.To the beginning of the GetQuote method, add the following code segment:If Not ContextUtil.IsCallerlnRole("Managers,Customers")_Then Throw New SecurityException("Access is denies.”)End If

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端