70-573 無料問題集「Microsoft TS: Office SharePoint Server, Application Development (available in 2010)」
You create a SharePoint solution.
You deploy the SharePoint solution by using Microsoft Visual Studio 2010. You need to prevent the Feature that is contained in the solution from being automatically activated when you deploy the solution.
What should you configure in Visual Studio 2010?
You deploy the SharePoint solution by using Microsoft Visual Studio 2010. You need to prevent the Feature that is contained in the solution from being automatically activated when you deploy the solution.
What should you configure in Visual Studio 2010?
正解:C
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
You create a Web Part that programmatically updates the description of the current SharePoint site.
The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 SPSecurity.RunWithElevatedPrivileges(delegate()
02 {
03 SPSite currSite = SPContext.Current.Site;
04 SPWeb currWeb = SPContext.Current.Web;
05 using (SPSite eSite = new SPSite(currSite.ID))
06 {
07 using (SPWeb eWeb = eSite.OpenWeb(currWeb.ID))
08 {
09 eWeb.AllowUnsafeUpdates = true;
10 currWeb.Description = "Test";
11 currWeb.Update();
12 eWeb.AllowUnsafeUpdates = false;
13 }
14 }
15 });
Users report that they receive an Access Denied error message when they use the Web Part. You need to ensure that all users can use the Web Part to update the description of the current site.
What should you do?
The Web Part contains the following code segment. (Line numbers are included for reference only.)
01 SPSecurity.RunWithElevatedPrivileges(delegate()
02 {
03 SPSite currSite = SPContext.Current.Site;
04 SPWeb currWeb = SPContext.Current.Web;
05 using (SPSite eSite = new SPSite(currSite.ID))
06 {
07 using (SPWeb eWeb = eSite.OpenWeb(currWeb.ID))
08 {
09 eWeb.AllowUnsafeUpdates = true;
10 currWeb.Description = "Test";
11 currWeb.Update();
12 eWeb.AllowUnsafeUpdates = false;
13 }
14 }
15 });
Users report that they receive an Access Denied error message when they use the Web Part. You need to ensure that all users can use the Web Part to update the description of the current site.
What should you do?
正解:D
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
You have a Microsoft Office SharePoint Server 2007 site.
You upgrade the site to SharePoint Server 2010.
You need to create a Feature that prevents site collection administrators from upgrading the user interface
of the site to SharePoint Server 2010.
Which property should you use?
You upgrade the site to SharePoint Server 2010.
You need to create a Feature that prevents site collection administrators from upgrading the user interface
of the site to SharePoint Server 2010.
Which property should you use?
正解:D
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
You are creating an application for SharePoint Server 2010.
The application will run on a remote computer.
You need to identify a data access method to query lists in the application.
Strongly-typed access to columns must be provided from within Microsoft Visual Studio 2010.
Which method should you use?
The application will run on a remote computer.
You need to identify a data access method to query lists in the application.
Strongly-typed access to columns must be provided from within Microsoft Visual Studio 2010.
Which method should you use?
正解:A
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
You create a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 public class WebPart1 : WebPart02 {17 }
03 04
public WebPart1() {}
05 06 07 08
protected override void CreateChildControls(){ Button clickButton = new Button();
09 10 11
base.CreateChildControls();}
12 13 14
protected override void RenderContents(HtmlTextWriter writer){
15 16
base.RenderContents(writer);}
You discover that the clickButton button does not appear.
You need to ensure that clickButton appears.
What should you do?
01 public class WebPart1 : WebPart02 {17 }
03 04
public WebPart1() {}
05 06 07 08
protected override void CreateChildControls(){ Button clickButton = new Button();
09 10 11
base.CreateChildControls();}
12 13 14
protected override void RenderContents(HtmlTextWriter writer){
15 16
base.RenderContents(writer);}
You discover that the clickButton button does not appear.
You need to ensure that clickButton appears.
What should you do?
正解:A
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)