欢迎来到PP题库网 PP题库官网
logo
全部科目 > 微软认证考试 > MCPD > MCPD(70-505)

单项选择题

You create an isntance of a BackgroundWorker Component named backgroundworker1.You discover that when the application attempts to cancel the background process you get an exception from the following code segment:   
backgroundworker1.CancelAsync(); 
You need to configure the BackgroundWorker component appropriately to prevent to application from exception.What should you do?()

    A.Cancel the background process in the backgroundworker1_DoWork event
    B.Set the IsBusy property og backgroundworker1 to True before you attempt to cancel
    C.Set the WorkerSupportsCancellation property of backgroundworker1 to true before the code
    D.Set the DoWorkEventArgs Cancel property to true

点击查看答案

相关考题

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

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