欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > 微软认证考试 > MCTS > MCTS(70-513)

单项选择题

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.
The operation contract is as follows.
[OperationContract]
[FaultContract(typeof(SalesFault))]
string GetSales(string saleId);()
The service configuration file contains the following line in the serviceBehaviors section.
A divide-by-zero exception is not being handled by the service.
You need to ensure that the exception is caught in the client application.
Which type of exception should the client catch?()

    A. TimeoutException
    B. FaultException
    C. DivideByZeroException
    D. FaultException<SalesFault>

点击查看答案
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题