PrepAway - Latest Free Exam Questions & Answers

Category: 70-541

Exam 70-541: TS: Microsoft Windows SharePoint Services 3.0 – Application Development

Which code segment should you use?

You are creating a Microsoft Windows SharePoint Services application that uses a tasks list.

The application must notify the project manager each time a new task is inserted into the tasks list. You write an event receiver in the class named TaskEventClass and compile the class in the assembly named TaskEventAssembly.

You need to register the event receiver. You also need to ensure that the event receiver is fired only when an item is added to the tasks list.

Which code segment should you use?

Which code segment should you use?

You are creating a Web Part for a Microsoft Windows SharePoint Services site named Site1. You install a feature named TimeFeature on Site1.

You write the following code segment.

Dim site As SPSite = New SPSite(“http://server/site1”)
Dim web As SPWeb = site.OpenWeb

You need to display the current time to the user only if the TimeFeature feature is activated on Site1.

Which code segment should you use?

Which code segment should you use?

You create a Microsoft Windows SharePoint Services application. Your company creates two SharePoint sites named Site1 and Site2 in the same Web application.

You write the following code segment.

Private site1 As SPWeb = _
(New SPSite(“http: //localhost/Site1”)).OpenWeb()
Private site2 As SPWeb = _
(New SPSite(“http: //localhost/Site2”)).OpenWeb()

You need to copy a custom cross-site group named CrossSite from Site1 to Site2.

Which code segment should you use?


Page 4 of 8« First...23456...Last »