070-482 Free Dumps Study Materials
Question 10: You need to separate the business and complex logic into components.
Which actions should you perform? (Each correct answer presents part of the solution. Choose all
that apply.)
A. In the JavaScript code, register the handler for the extension/mime-type.
B. In the package.appxmanifest file, create an Extensions section and register the component .dll file.
C. In Windows Explorer, drag the component .dll file to the project bin directory.
D. In Microsoft Visual Studio Solution Explorer, right-click the References folder and then click Scope
to This.
Correct Answer: A,B
Explanation:
A: In Microsoft Internet Explorer 4.0 and later, MIME type determination occurs in URL monikers
through the FindMimeFromData method. Determining the MIME type allows URL monikers and
other components to find and launch the correct object server or application to handle the
associated conten
B: *An application that registers a background task needs to declare the feature in the application
manifest as an extension, as well as the events that will trigger the task. If you forget these steps, the
registration will fail. There is no <Extensions> section in the application manifest of the Microsoft
Visual Studio standard template by default, so you need to insert it as a child of the Application tag.
*You can implement Windows RunTime components for your apps, but you must register those
components with the operating system for them to run correctly. To register a Windows RunTime
component, you must put the registration information in the WinMD files and in the app manifest. If
a project implements a Windows RunTime component, the build output of the project will contain a
WinMD file. Visual Studio extracts the Windows RunTime registration information from the WinMD
file and generates the appropriate Extensions elements in the app manifest. The system supports two
forms of servers: .dll servers (in-process) and .exe servers (outof-process). These servers require
similar but different registration information that must be copied into the app manifest. Visual Studio
supports generating manifest only for .dll servers, and the DLLServer extension is required to register
.dll servers. The following values in the app manifest are taken from the WinMD files to construct the
DLLServer Extension: DllPath ActivatableClassId ThreadingModel ActivatableClass (ActivatableClassId
attribute) Here's an example of the output XML: <extension
category="Microsoft.Windows.ActivatableClass"> <dllServer> <dllPath>Fabrikam.dll</dllPath>
<activatableClass activatableClassId="Fabrikam.MyClass" threadingModel="sta" /> </dllServer>
</extension>