70-543 Free Dumps Study Materials
Question 12: You create a document-level solution by using Visual Studio Tools for the Microsoft Office
System (VSTO). The solution uses an assembly named MyAssembly. MyAssembly is located in the
C:\Assemblies\ folder. A Microsoft Office Word 2003 document named MyWordDocument is located
in the C:\Documents\ folder. You need to associate MyAssembly with MyWordDocument if managed
extensions are enabled in MyWordDocument. Which code segment should you use?
A. Dim document As String = "C:\Documents\MyWordDocument.doc" Dim assembly As String =
"C:\Assemblies\MyAssembly.dll" If ServerDocument.IsCustomized (document) Then 'Add document
customization End If
B. Dim document As String = "C:\Documents\MyWordDocument.doc" Dim assembly As String =
"C:\Assemblies\MyAssembly.dll" If ServerDocument.IsCacheEnabled (document) Then 'Add
document customization End If
C. Dim document As String = "C:\Documents\MyWordDocument.doc" Dim assembly As String =
"C:\Assemblies\MyAssembly.dll" If ServerDocument.IsCustomized (assembly) Then 'Add document
customization End If
D. Dim document As String = "C:\Documents\MyWordDocument.doc" Dim assembly As String =
"C:\Assemblies\MyAssembly.dll" If ServerDocument.IsCacheEnabled (assembly) Then 'Add document
customization End If
Correct Answer: A