You are developing a custom service host for a Windows Communication Foundation (WCF) service. The service host is named MovieServiceHost.You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0. What should you do?()A、Make sure that service class has a default constructor. Add a public read-only property with the name ServiceHost that returns an instance of the MovieServiceHost class.B、Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the web.config file, add the following attribute to the element within the element. factory="MovieServiceFactory"C、Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the .svc file, add the following line. %@ServiceHost Service="MovieServiceHostFactory" Language="C#"D、Decorate the custom service host class with the following line. [System.ServiceModel.Activation.ServiceActivationBuildProvider()]
You are developing a custom service host for a Windows Communication Foundation (WCF) service. The service host is named MovieServiceHost.You need to deploy the service with the custom service host in Microsoft Internet Information Services (IIS) 7.0. What should you do?()
- A、Make sure that service class has a default constructor. Add a public read-only property with the name ServiceHost that returns an instance of the MovieServiceHost class.
- B、Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the web.config file, add the following attribute to the element within the
element. factory="MovieServiceFactory" - C、Create a factory for the custom service host. Name the factory MovieServiceHostFactory. In the .svc file, add the following line. <%@ServiceHost Service="MovieServiceHostFactory" Language="C#">
- D、Decorate the custom service host class with the following line. [System.ServiceModel.Activation.ServiceActivationBuildProvider()]
相关考题:
You would like to create a custom performance counter for an application that you created recently.To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications.What should you do?()A.B.C.D.
You have a computer that runs Microsoft Windows XP. The computer has a custom application installed.You plan to upgrade the Windows XP computer to Windows Vista.You need to identify whether User Account Control (UAC) will allow the custom application to run without requiring elevated privileges.What should you do?()A.AB.BC.CD.D
You have a DNS zone that is stored in a custom application directory partition. You install a new domain controller. You need to ensure that the custom application directory partition replicates to the new domain controller. What should you use()A、the Active Directory Administrative Center consoleB、the Active Directory Sites and Services consoleC、the DNS Manager consoleD、the Dnscmd tool
Your company has a single Active Directory Domain Services (AD DS) domain and 1,000 Windows Vista computers. You are planning to deploy Windows 7 and a custom application. You have the following requirements: The application must be available to only a specific group of users. You must be able to monitor application usage. You need to design a deployment method for the custom application that meets the requirements. Which deployment method should you use in your design?()A、software installation in Group PolicyB、startup scripts in Group PolicyC、Microsoft Application Virtualization (App-V)D、baseline Windows 7 image that includes the custom application
You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script. What should you recommend?() A、 Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script. Connect to the web role instance by using RDP, and then manually test the startup script.B、 Deploy the application in the Windows Azure Compute Emulator.C、 Deploy the application with a custom error page.D、 Deploy the application and then use IntelliTrace.
You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: ?xml version="1.0" encoding="utf-8" ? You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()A、 Create a custom section handler class that inherits the ConfigurationSection interface.B、 Add a section element to the EmployeeSection element of the application configuration file.C、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.D、 Add an EmployeeSection element to the configSections element of the application configuration file.E、 Create a custom section handler class that implements the IApplicatioSettingsProvider interface.F、 Add a section element to the configSections element of the application configuration file.
You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.What should you do?()A、Override the OnPaint method.B、Write a code segment in the DrawNode event handler to specify the highlight color.C、Set the DrawMode property of the control to OwnerDrawAll, and then implement a custom DrawNode event handler.D、Set the DrawMode property of the control to OwnerDrawText,and then implement a custom DrawNode event handler.
You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server. From which base type should your custom event type inherit? ()A、IWeb Event Custom EvaluatorB、Web Event ProviderC、Web Base EventD、Web Audit Event
You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()A、[Bindable(false)]B、[DesignOnly(false)]C、[EditorBrowsable(EditorBrowsableState.Never)]D、[Browsable(false)]
You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()A、The method must return a type of either IEnumerator or IEnumerable.B、The method must return a type of IComparable.C、The method must explicitly contain a collection.D、The method must be the only iterator in the class.
Your network contains an Active Directory forest. The forest schema contains a custom attribute for user objects. You need to modify the custom attribute value of 500 user accounts. Which tool should you use()A、CsvdeB、DsmodC、DsrmD、Ldifde
You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server. From which base type should your custom event type inherit? ()A、IWebEventCustomEvaluatorB、WebEventProviderC、WebBaseEventD、WebAuditEvent
You are the desktop administrator for your company's sales department. The IT manager for the sales department creates a custom policy that will apply to a custom application that is loaded on the department's Windows XP Professional computers. He deploys this policy by using Group Policy. When you inspect the sales department's computers, you find out that the application has not been modified by the policy. You want to examine Windows XP Professional to find out whether the custom policy is affecting the correct location in the Registry. Which command should you run?()A、Msinfo32. exeB、Gpresult.exeC、Gpedit.mscD、Rsop.msc
You work as an application developer at Cer-Tech.com.You are in the process of creating an application for Cert-Tech.com’s Human Resources department that tracks employee benefits You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: What should you do?()A、 Create a custom section handler class that inherits the ConfigurationSection interfaceB、 Add a section element to the EmployeeSection element of the application configuration fileC、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.D、 Add an EmployeeSection element to the configSections element of the application confguration fileE、 Create a custom section handler class that implements the IApplicationSettingsProvider interfaceF、 Add a section element to the configSections element of the application configuration file
You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit? ()A、FrameworkElementB、UIElementC、UserControlD、Button
多选题You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()ACreate a custom section handler class that inherits the ConfigurationSection interface.BAdd a section element to the EmployeeSection element of the application configuration file.CCreate a custom section handler class that implements the IConfigurationSectionHandler interface.DAdd an EmployeeSection element to the configSections element of the application configuration file.ECreate a custom section handler class that implements the IApplicatioSettingsProvider interface.FAdd a section element to the configSections element of the application configuration file.
单选题You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment.Partial Public Class Custom Inherits System.Web.UI.MasterPagePublic Property Region As String Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadEnd SubEnd Class You create a new ASP.NET page and specify Custom.master as its master page.You add a Label control named lblRegion to the new page. You need to display the value of the master pages Region property in lblRegion.What should you do? ()AAdd the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Parent lblRegion.Text = custom.RegionBAdd the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Master lblRegion.Text = custom.RegionCAdd the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Page.FindControl(lblRegion) lblRegion.Text = Me.RegionDAdd the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl(lblRegion) lblRegion.Text = Me.Region
单选题You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()A[Bindable(false)]B[DesignOnly(false)]C[EditorBrowsable(EditorBrowsableState.Never)]D[Browsable(false)]
多选题You administer a network with Windows-based endpoints that have custom software images. You want to use Host Checker to require that endpoints are running the custom software image.Which two Host Checker policy rules would be used to enforce this requirement?()AIsolate a file name unique to the custom image and create a custom rule-type of File which matches on the file. Select the Required option under the custom rule.BIdentify the MAC address unique to network cards installed in PCs with the custom image and create a custom rule-type of MAC Address which matches on the appropriate MAC address.CSelect the Required option under the custom rule Identify the IP address unique to the network cards installed in PCs with the custom image and create a custom rule-type of IP Address which matches on the appropriate IP address. Select the Required option under the custom rule.DIsolate or create a unique Windows registry key for the custom image and create a custom rule- type of Registry Setting which matches on the name of the registry key.
单选题A Windows Communication Foundation (WCF) service is deployed with netTcpBinding. This service uses a duplex message exchange pattern.You are developing the next version of the WCF service. You discover that your company's hardware load balancer performs correctly only for WCF services that use HTTP. You need to ensure that your service works with the load balancer. What should you do?()AUse basicHttpBinding.BCreate a custom binding that has the compositeDuplex, textMessageEncoding, and namedPipeTransport binding elements in this order.CCreate a custom binding that has the compositeDuplex, textMessageEncoding, and wsHttpTransport binding elements in this order.DUse wsHttpBinding.
单选题Which of the following is NOT one of the three details you need to fill in on the New Custom Control dialog?()AName of the custom controlBComments to describe the custom controlCList of the controls that will make up this custom controlDApplication that will contain the custom control
单选题You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script. What should you recommend?()A Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script. Connect to the web role instance by using RDP, and then manually test the startup script.B Deploy the application in the Windows Azure Compute Emulator.C Deploy theapplication with a custom error page.D Deploy the application and then use IntelliTrace.
单选题You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()AThe method must return a type of either IEnumerator or IEnumerable.BThe method must return a type of IComparable.CThe method must explicitly contain a collection.DThe method must be the only iterator in the class.
单选题You have a DNS zone that is stored in a custom application directory partition. You install a new domain controller. You need to ensure that the custom application directory partition replicates to the new domain controller. What should you use()Athe Active Directory Administrative Center consoleBthe Active Directory Sites and Services consoleCthe DNS Manager consoleDthe Dnscmd tool