What should you do?
You have a custom site definition.
You create a custom site Feature.
You need to ensure that the Feature is activated for all new sites that are created by using the custom site definition.
What should you do?
Which configuration setting should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be exposed for consumption. You need to ensure that the service supports interoperability with the broadest possible number of Web Service toolkits. The service must also support transport-level security. Which configuration setting should you use?
Which file should you modify?
You use a third-party site definition to create SharePoint sites.
You need to add a Web Part to the home page of the site definition.
Which file should you modify?
Which type of binding should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You want to use a built-in binding to support reliable sessions. You need to create a service that uses SOAP to transfer messages between endpoints. The service must deliver the messages only once, and in the same order in which they were sent. Which type of binding should you use?
What should you do?
You have a SharePoint site that uses a master page named Master1.master.
You create a custom user control named MySearch.ascx.
You need to change the default search box to MySearch.ascx.
What should you do?
What should you do?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service uses the net.tcp transport. You need to ensure that when the server starts, the service starts and continues to run. What should you do?
What should you do?
You have several SharePoint sites.
You plan to load a custom script in all pages of the sites. You need to ensure that you can activate or deactivate the script at the site level.
What should you do?
Which code segment should you use?
You are creating an endpoint for a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the endpoint by using a custom binding. You write the following code segment.
BasicHttpBinding binding=new BasicHttpBinding();
binding.Security.Message.ClientCredentialType=
BasicHttpMessageCredentialType.Certificate;
binding.Security.Mode=BasicHttpSecurityMode.Message; CustomBinding cb=new CustomBinding(binding);
BindingElementCollection bec=cb.CreateBindingElements();
You need to prevent the custom binding from making a persistent connection to the service endpoint.
Which code segment should you use?
What should you do?
You create a user control named MySearchBox.ascx.
You plan to change the native search control in SharePoint to MySearchBox.ascx. You implement a Feature that contains the following code segment.
<Control Id=”SmallSearchInputBox”
Sequence=”100″
ControlSrc=”~/_controltemplates/MySearchBox/MySearchBox.ascx”>
</Control>
You discover that the MySearchBox.ascx control fails to appear. You need to ensure that the MySearchBox.ascx control appears.
What should you do?
Which code segment should you insert at line 04?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment for the service implementation. (Line numbers are included for reference only.)
01 public void PutMessage(Message msg)
02 {
03 string value=null;
05 }
You need to retrieve the content from the received message body and store it in the variable named value. Which code segment should you insert at line 04?