移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

You are developing a client application that consumes a Windows Communication Foundation (WCF) service. You use the svcutil.exe utility to create a proxy for the service. You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.You create an instance of the client proxy with the following code:var client = new TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()

发布日期:2021-03-17

You are developing a client application that consu...
A

client.BeginGetFlight(GetFlightCallback, null); client.GetFlight();

B

client.GetFlight(); client.BeginGetFlight(GetFlightCallback, null);

C

client.GetFlightCompleted += new EventHandler(GetFlightCallback); client.GetFlightAsync();

D

IAsyncResult asyncResult = client.BeginGetFlight(GetFlightCallback, client); client.EndGetFlight(asyncResult);

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!