Question:Which of the following code samples correctly retrieves the current cookie confi guration
settings? 

A 'VB
Dim section As String = WebConfigurationManager.GetSection _
("system.web/httpCookies")
//C#
string section = WebConfigurationManager.GetSection("system.web/httpCookies"); 

B 'VB
Dim section As HttpCookiesSection = _
WebConfigurationManager.GetSection("httpCookies")
//C#
HttpCookiesSection section =
(HttpCookiesSection) WebConfigurationManager.GetSection("httpCookies"); 

C 'VB
Dim section As String = WebConfigurationManager.GetSection("httpCookies")
//C#
string section = WebConfigurationManager.GetSection("httpCookies"); 

D 'VB
Dim section As HttpCookiesSection = _
WebConfigurationManager.GetSection("system.web/httpCookies")
//C#
HttpCookiesSection section = (HttpCookiesSection)
WebConfigurationManager.GetSection("system.web/httpCookies"); 

+ Answer
+ Report
Total Preview: 972

Copyright © 2024. Powered by Intellect Software Ltd