You are creating a Business Data Catalog (BDC) definition for a phone book application. The application stores
customer names in a table named People in a Microsoft SQL Server database. You are defining an entity
named People within the BDC definition. You need to ensure that the entity data can be displayed in a Business
Data List (BDL) Web Part. Which method should you define inside the entity?
You need to create a Business Data Catalog Application Definition File that contains an association between
the department entity and an employee entity. You add the following code to the Application Definition File:
01:
02:
03: ...
04:
05:
Which XML element should you add to line 3?
You create an application from Microsoft Office SharePoint 2007 Server. You need to write code that retrieves
all users for an audience named Audience1.
Which code segment should you use?
You redesign your SharePoint Server 2007 solution. You write the following code segment:
01: Shared Sub folderShare(ByVal portal_uri As String, ByVal doc_uri As String, ByVal folder_location As
String)
02: Dim site As SPSite = New SPSite "_uri"
03: Try
04: Dim context as ServerContext = ServerContext.getContext("site")
05: Dim sspContent as Content = New Content(context)
06: Try
07: Dim targetURI as URI = New URI(doc_URI)
08: Try
09: Dim sspContentSources as ContentSourceCollection = sspContent.ContentSources
10: ...
11: Finally
12: CType(targetURI, iDisposable).dispose()
13: End Try
14: Finally
15: CType(sspContent, iDisposable).dispose()
16: End Try
17: Finally
18: CType(site, iDisposable).dispose()
19: End Try
20: End Sub
You need to add a folder from UNC path that contains documents as a content source.
Which code segment would you insert at line 16?
You create a Microsoft Office SharePoint 2007 Portal site. The site contains a document retention policy for
Request for Proposal (RFP) documents. You need to customize the policy to ensure that a notification is sent to
each manager when the RFP date expires.
What should you do?
You add a new profile property to a property in an LDAP store. You need to ensure that the profile properties
update as PropProfileUsers.
Which method should you use?
You have a custom windows form application. You plan to create a feature that will perform a key word search
of a SharePoint site. You create a feature that contains the following code:
01: Dim keyWordString as String = "Microsoft"
02: dim queryXMLString as String = (""&
03: ...
04: QuerySearch
05: Dim queryService as New QueryWebServiceProxy.QueryService()
06: queryService.Credentials = System.Net.CredentialsClass.DefaultCredentials
07: Dim queryResults as System.Data.DataSet =
queryService.QueryEx(queryXMLString)
08 ResultsGridView.DataSource = queryResults.Tables(0)
You need to ensure that the search returns valid results.
Which code segment would you put a line 3?
You plan to import SharePoint user profiles from a LDAP directory. You create a custom application that
contains the following code segment:
01: Using site as new SPSite("http://localhost")
02: Dim context as ServerContext = ServerContext.GetContextc(site)
03: Dim userProfileManager as New UserProfileManager(context)
04: Dim userProfileConfigManager as New UserProfileConfigManager(context)
05: userProfileConfigManager.ActivateImport(True)
06:
07: End Using
You run the code segment. You notice the user profiles are not imported. You need to ensure that when the
code segment runs, the SharePoint profiles are imported from the LDAP directory.
Which code segment should you add at line 06?
You have a SharePoint web page named page1.aspx that displays a Microsoft Office InfoPath form. The
InfoPath form contains XMLFormView control. You need to pass data from the XMLFormView control to
page1.aspx.
What should you do?