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

You create an XML Web service named PhoneNumberService that returns the telephone numbers of people in a specified geographical region. If an error occurs when the service is processing requests, a custom application exception named PhoneNumberException is thrown.You create an ASP. NET application named Your Phone Book that contains a Web reference to PhoneNumberService. You need to wrap any calls made to PhoneNumberService in a try/catch block to catch any PhoneNumberException that may be thrown.Which two code segments are possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two)

2021-12-25

A.Try'Code to call PhoneNumberService method goes here.Catch ex As SoapException 'Handle the exception.End Try

B.Try'Code to call PhoneNumberService method hoes here.Catch ex As SoapHeaderException 'Handle the exception.End Try

C.Try'Code to call PhoneNumberService method goes here.Catch ex As Exception 'Handle the exception.End Try

D.Try'Code to call PhoneNumberService method goes her

E.Catch ex As Application 'Handle the exception. End Try

题目答案

试卷相关题目

最新试卷
热门试卷

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

去 App Store 免费下载 iOS 客户端