题目内容

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?()

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);

查看答案
更多问题

遇哪些情况时应注意水位调整?

下列各项税费中,应该记入"营业税金及附加"科目是()。

A. 出售固定资产应交的营业税
B. 增值税一般纳税人销售产品应交的增值税
C. 出租无形资产应交的营业税
D. 委托加工物资收回后用于连续生产应税消费品被代扣代缴的消费税

美国的Leo Kanner医生于1957年最早提出儿童的“()”现象。

根据高聚物改性沥青防水卷材的特性,其施工方法主要有()

A. 热熔法
B. 冷粘法
C. 自粘法
D. 胶粘法
E. 热风焊接法

答案查题题库