PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You create a records repository for a Microsoft Windows SharePoint Services farm.

You need to enable the Send To menu for a SharePoint site within the farm.

Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Protected Sub RecordsLocation()
Dim app As SPWeb = (New SPSite(“http: //portal”)).OpenWeb()
app.Files.Web.GetObject( _
“http: //portal/records/_vti_bin/officialfile.asmx”)
app.Description = “Records”
app.Update()
End Sub

B.
Protected Sub RecordsLocation()
Dim app As SPWeb = (New SPSite(“http: //portal”)).OpenWeb()
app.CustomMasterUrl = _
“http: //portal/records/_vti_bin/officialfile.asmx”
app.Description = “Records”
app.Update()
End Sub

C.
Protected Sub RecordsLocation()
Dim app As SPAdministrationWebApplication = New _
SPAdministrationWebApplication()
Dim myurl As Uri = New _
Uri(“http: //portal/records/_vti_bin/officialfile.asmx”)
app.OfficialFileUrl = myurl
app.OfficialFileName = “Records”
app.Update()
End Sub

D.
Protected Sub RecordsLocation()
Dim app As SPAdministrationWebApplication = New _
SPAdministrationWebApplication()
Dim myurl As String = _
“http: //portal/records/_vti_bin/officialfile.asmx”
app.PublicFolderRootUrl = myurl
app.PublicFolderRootUrl.Contains(“Records”)
app.Update()
End Sub.


Leave a Reply