You create an entity named Customer in a Business Connectivity Services (BCS) object mode.
You need to ensure that Customer data can be displayed in a Business Data List Web Part.
Which method type should you use?
A. GenehclnvokerYou need to programmatically add a user named User1 to a group named Group1.
You write the following code segment. (Line numbers are included for reference only.)
01 string login = "User1";
02 string grpName = "Group1";
03 SPUser user = SPContext.Current.Web.EnsureUser(login);
04 SPGroup group = SPContext.Current.Web.Groups[grpName]; 06 group.Update();
Which code segment should you add at line 05?
A. group.AddUser(user);You create a sandboxed solution that contains a Web Part.
You need to debug the Web Part by using Microsoft Visual Studio 2010.
To which process should you attach the debugger?
A. w3wp.exeYou have a SharePoint site that has the URL http://contoso.com/hr.You are creating a new Web Part. You need to create a reference to the current subsite without having to dispose of any returned objects. Which code segment should you use?
A. Dim siteCollection As New SPSite("http://www.contoso.com") Dim site As SPWebCollection = siteCollection.AllWebsYou need to send a single value from a consumer Web Part to a provider Web Part. Which interface should you use?
A. IWebPartFieldYou need to disable the CriticalExceptionCount measure for all user solutions. You write the following code segment. (Line numbers are included for reference only.)
01 Dim userCode As SPUserCodeService = SPUserCodeService.Local
02 Dim measures As SPResourceMeasureCollection = userCode.ResourceMeasures
03 Dim measure As SPResourceMeasure = measures("CriticalExceptionCount") 05 measure.Update()
Which code segment should you add at line 04?
A. measure.AbsoluteLimit = 0You have a custom Web Part that is deployed as a sandboxed solution. You need to ensure that the Web Part can access the local file system on a SharePoint server. You must minimize the amount of privileges assigned to the Web Part. What should you do?
A. Elevate the trust level to Full.You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
02 Dim site As New SPSite("http://www.contoso.com/default.aspx")
03 If True Then
04 Dim web As SPWeb = site.OpenWeb()
06 End If
07End Sub
You deploy the Web Part to a SharePoint site. After you deploy the Web Part, users report that the site loads slowly. You need to modify the Web Part to prevent the site from loading slowly. What should you do?
A. Add the following line of code at line 05. web.Close()You are creating a Web Part in SharePoint Server 2010.
You need to ensure that the Web Part can send data to another Web Part.
Which interface should you implement?
A. IWebPartFieldYou create a custom Web Part.
You need to ensure that a custom property is visible in Edit mode.
Which attribute should you set in the Web Part?
A. WebDisplayNameNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-573 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.