快捷搜索:  as  test  1111  test aNd 8=8  test++aNd+8=8  as++aNd+8=8  as aNd 8=8

和记娱到h88285:Sharepoint 70573考试习题和解析(Q15Q18)



Question15

You are creating an application page that will open a dialog box.

The dialog box uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)

01

You need to ensure that the code opens the dialog box.

What should you do?

A. Add a script link that references SP.js.

B. Add a script link that references SharePoint.Dialog.js.

C. At line 13, change showModa和记娱到h88285lDialog to openDialog.

D. At line 13, change showModalDialog to commonModalDialogOpen.

解析:

本题在代码段没有什么差错,以是要包管能精确显示ModalDialog窗口,就只能是SP.js的引入了。参考Question 13,以是本题没有太多解说,精确谜底应该是A

Question16

You plan to add a custom tab to the Ribbon in a SharePoint Web application.

You create a custom Feature that contains an Elements.xml file.

You need to ensure that the custom tab only appears in the document libraries of the Web application.

Which code segment should you add to the Custom Action node of the Elements.xml file?

A. Location="DocumentLibrary"

B. RegistrationId="101"

C. RegistrationType="List"

D. ShowInLists="false"

解析:

本题的题意是要你设置你添加的Tab容器的显示机会。也即和记娱到h88285它只与Document Libraries关联显示。

先看一段Ribbon的Element.xml样例

xml version="1.0" encoding="utf-8"?>

Elements xmlns="http://schemas.microsoft.com/sharepoint/">

CustomAction

Id="DemoH和记娱到h88285elloWorldButton"

RegistrationType="List"

RegistrationId="101"

Location="CommandUI.Ribbon">

CommandUIExtension>

CommandUIDefinitions>

CommandUIDefinition

Location="Ribbon.Documents.New.Controls._children">

Button

Id="Ribbon.Documents.New.Controls.DemoHelloWorldButton"

Alt="Hello World Ribbon Button"

Sequence="10"

Image32by32="/_layouts/images/PPEOPLE.GIF"

Command="Demo_HelloWorld"

LabelText="Hello World Demo"

TemplateAlias="o2"/>

CommandUIDefinition>

CommandUIDefinitions>

CommandUIHandlers>

CommandUIHandler

Command="Demo_HelloWorld"

CommandAction="javascript:alert('Hello World!');" />

CommandUIHandlers>

CommandUIExtension>

CustomAction>

Elements>

选项A. Location="DocumentLibrary" 表达是差错的。

CustomAction元素的Location 属性见告 CustomAction 在何处利用自定义项(即此元素内的所有自定义内容)。下表便是此属性相关选项的取值及阐明:

阐明

CommandUI.Ribbon

对付指定的 RegistrationId,自定义项呈现在任何地方。

CommandUI.Ribbon.ListView

当存在列表视图 Web 部件时呈现自定义项。

CommandUI.Ribbon.EditForm

自定义项呈现在编辑表单上。

CommandUI.Ribbon.NewForm

自定义项呈现在新建表单上。

CommandUI.Ribbon.DisplayForm

自定义项呈现在显示表单上。

选项B. RegistrationId和记娱到h88285="101". 用于指定与此操作(CustomAction )关联的列表或项内容类型的标识符,或文件类型或编程标识符 (ProgID)。 关于它们的含义请拜见http://www.fengfly.com/plus/view-210613-1.html,此设置为101 也即我们自定义的CustomAction与 Document library //文档库 进行关联。也便是说当我们选择Sharepoint网站的某个DocumentLibrary List时,就会呈现我们自下定义的CustomAction选项卡(Tab),也便是说,在CustomAction的相关属性设置中,我们办理了它显示的“机会”问题。

选项C. RegistrationType="List" ,RegistrationType属性: 用于给每项操作指定注册附件。可能的值包括:None,ContentType,FileType,List,ProgId

选项D. ShowInLists="false" 此属性已经弃用,不应该再应用。可选属性,类型为 Boolean。假如仅在用于治理内容类型的页上显示针对列表的自定义操作,则为 TRUE。默认值为 FALSE。

以是本题目精确选项应该是B

参考:

http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html

http://msdn.microsoft.com/en-us/library/ff630938.aspx

http://msdn.microsoft.com/en-us/library/ms460194.aspx

Question 17

You have one Web application that contains several SharePoint site collections.

You need to create a Feature that adds a custom button to the Documents tab on the Ribbon of one site collection only.

What should you do?

A. Create a new Feature. In a newnode, specify the location of Ribbon.Tabs._children.

B. Create a new Feature. In a newnode, specify the location of Ribbon.Documents.Manage.Controls._children.

C. Modify the CMDUI.xml file. In a newnode, specify the location of Ribbon.Tabs._children.

D. Modify the CMDUI.xml file. In a newnode, specify the location of Ribbon.Documents.Manage.Controls._children.

解析:

本题的题意如果要实现在”某一个” Site Collection中的Ribbonr的Document Tab上添加一个用户自定义的按钮。所所以关于Ribbon的实现的。由要求可知 1. 此按钮并非”通用”的,即适用于所有的Site Collection. 2. 此按钮要呈现在Document Tab中。

明确了要求,我们就可以首先扫除C.D了,由于CMDUI.xml中定义的均是Out-Of-Box的Ribbon元素,也即在这里所作的改变均会显示到所有的相关的Site Collection中,具有”通用”性。达不到只针对某个Site Collection的要求。

然后便是Document Tab的位置要求,本题位置要求应该是Ribbon.Documents. 即选项B相符要求。

至于选项A,是根本不存在Ribbon.Tabs这样的位置定义的。

以是本题目精确选项应该是B

参考:

http://msdn.microsoft.c和记娱到h88285om/zh-cn/library/ee537543(v=office.14).aspx

http://www.fengfly.com/plus/view-210621-1.html

http://howtosharepoint.blogspot.com/2010/06/ribbon-basics.html

Question 18

You have a SharePoint site that contains 10 lists.

You need to prevent a list named List1 from appearing on the Quick Launch navigation bar.

What should you configure?

A. the Hidden property of List1

B. the Navigation.QuickLaunch.Parent.IsVisible property of the site

C. the OnQuickLaunch property of List1

D. the QuickLaunchEnabled property of the site

解析:

选项A. List的Hidden Property用于设置这个List是否在Documents page, Lists page, Quick Launch bar, Modify Site Content page, 或者 Add Column page上显示.请留意,它节制的不仅是Quick Launch Bar上是否显示。

选项B. 看表达就知道它节制的并不是List,而是QuickLlaunch工具自身的元素。而且是否有此属性我还并没验证。

选项C. 此属性用于设置指定的List是否在HomePage的Quick Launch 上呈现,这恰是我们必要的。

选项D. 用于设置Quick Launch area 是否在Web Site上能用(显示与否)。

以是本题目精确选项应该是C

参考

http://msdn.microsoft.com/zh-cn/library/microsoft.sharepoint.splist.onquicklaunch.aspx

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.onquicklaunch.aspx

http://msdn.microsoft.com/zh-cn/library/microsoft.sharepoint.spweb.quicklaunchenabled(v=office.12).aspx

免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。

您可能还会对下面的文章感兴趣: