Which method should you use?
You create a Web Part that performs privileged operations.
The Web Part requires permissions that the user might not have.
You need to ensure that users with insufficient permissions can also run the Web Part to perform privileged operations.
Which method should you use?
Which code segment should you use?
You create a custom task list in a Microsoft Windows SharePoint Services site.
You need to prevent users from changing the custom task list. You also need to ensure that an error message is displayed when a user tries to change the list.
Which code segment should you use?
Which class should you use?
You create a Web Part. The Web Part requires configuration information from the user. You plan to provide a custom interface for a custom field.
You need to derive a class to implement the custom interface.
Which class should you use?
What should you do?
You create the following two document libraries for the human resources
department of your company:
* Vacation requests for full-time employees
* Vacation requests for part-time employees
You need to enable a single workflow to serve both document libraries.
What should you do?
Which two actions should you perform?
You have a Microsoft Windows SharePoint Services development server. You create a Web Part for a Windows SharePoint Services site. The Web Part must call a Web service.
You deploy the Web Part on the development server. When you test the Web Part, the Web Part throws an exception.
You need to prevent the occurrence of the exception when you test the Web Part.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which two actions should you perform?
You create a custom administration page for a Microsoft Windows SharePoint Services application.
The page is throwing a security exception. You verify that you have administrator rights on the Microsoft Windows SharePoint Services server.
You need to ensure that the page can be used to perform administrative functions.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which method should you use?
You are creating a Microsoft Windows SharePoint Services application.
You create a Windows SharePoint Services feature named MyFeature. You implement the feature within a Microsoft .NET namespace named MyFeature. You create a class named SiteMonitor that inherits from the SPWebEventReceiver class. The SiteMonitor class overrides two methods, named SiteDeleting and WebDeleting. Both methods cancel the deletion process.
You need to prevent all users, including site administrators, from deleting the MySite Web site.
Which method should you use?
Which code segment should you use?
You have a site that utilizes the built-in team site definition.
You define a function named EnableSitesandLists. The function will take an SPWeb object of the site that you want to navigate to.
You need to ensure that your site navigation displays a listing of child sites and lists.
Which code segment should you use?
Which code segment should you use?
You create a Web Part and deploy the Web Part to a Windows SharePoint Services site named Site1. You create a feature named MyFeature.
You write the following code segment.
Private site As SPSite = New SPSite(“http://server/site1”) _
Private web As SPWeb = site.OpenWeb()
You need to activate the feature only on Site1 when the Web Part is loaded.
Which code segment should you use?
Which code segment should you use?
You are creating an administrative Web Part for a Microsoft Windows SharePoint Services application.
You write the following code segment.
Dim mySPFarm As SPFarm = SPWebService.ContentService.Farm
Dim mySPServerCollection As SPServerCollection = mySPFarm.Servers
Dim contentDatabases As ArrayList = New ArrayList ()
You need to add the names of the content databases for non-administrative sites that are available within the server farm to the ArrayList object.
Which code segment should you use?