You create a console application to manage Personal Sites. The application contains the following
code segment. (Line numbers are included for reference only.) 01 Dim siteCollection As New
SPSite(“http://moss”); 02 Dim profileManager As New
serProfileManager(ServerContext.GetContext(siteCollection)); 03 Dim profile As UserProfile =
profileManager.GetUserProfile(“domain\username”); 04 Dim personalSite As SPSite =
profile.PersonalSite; 05 06 siteCollection.Dispose(); You deploy the application to a SharePoint
site.After deploying the application, users report that the site loads slowly. You need to modify the
application to prevent the site from loading slowly. What should you do?
A.
Remove line 06.
B.
Add the following line of code at line 05. personalSite.close();
C.
Add the following line of code at line 05. personalSite.Dispose();
D.
Change line 06 to the following code segment. siteCollection.close();