A.If the key matches the key in the current session, RetrieveData will return data to the customer.You write the following code segment in the Load event handler of Forml(Line numbers are included for reference only)1.Dim servicel As New localhost.Servicel ()2.Dim key As String3.Dim userData As DataSet4.'Insert new code.5.key = servicel.Authenticate(myUser, myPassword)6.userData = servicel.RetrieveData(key)7.dataGridl.DataSource = userDataYou run the application. When line 06 executes the Web service throws an exception, which indicates that the key is invalid. To ensure that the application runs without exceptions, you must insert additional code on line 04.Which code segment should you use?A.servicel.PreAuthenticate = True
B.servicel.InitializeLifetimeService()C . servicel.CookieContainer = New _System.Net.CookieContainer ()D. Dim cookie As New System.Net.Cookie("Key", key)
长理培训客户端 资讯,试题,视频一手掌握
去 App Store 免费下载 iOS 客户端