What should you do?

You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)

You deploy the Web Part to a SharePoint site.
After you deploy the Web Part, users report that the site loads slowly. You need to modify the Web Part to prevent the site from loading slowly.
What should you do?
A. Add the following line of code at line 06:
web.Close();
B. Add the following line of code at line 06:
web.Dispose();
C. Add the following line of code at line 06:
site.Close();
D. Change line 03 to the following code segment:
using (SPSite site = new SPSite("http://www.contoso.com/default.aspx"))

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.