, (eBook pdf) Developing XML Web Services and Server Components with Microsoft Visual Basic .NET, v2.0 (Test King 70 310) 

[ Pobierz całość w formacie PDF ]
.NET Framework Class Library, EventLogTraceListener Class [Visual Basic]Incorrect AnswersLeading the way in IT testing and certification tools, www.testking.com- 84 - 070 - 310A: The EventLog object provides interaction with Windows event logs and filestreams enables writing of datato files.However, they are not appropriate for logging warning and error messages.B: The following statements are incorrect.Trace.Write(eventLog);Trace.Write(fileLog);The correct usage is Trace.Write(Parameter), where Parameter is either an Object or a String that should bewritten.D: The EventLogTraceListener constructor() (with no parameter) initializes a new instance of theEventLogTraceListener class without a trace listener.QUESTION NO: 84You are using Visual Studio.NET to develop an application.You have a common business logiccomponent that was created in COM that you want to use until you can replace it with Visual Studio.NET code.You create the Visual Studio.NET solution for the new application.You want to use the COMcomponent in your Visual Studio.NET solution.What should you do?A.Register the COM component by using Regsvr32.exe.B.Run the Type Library Exporter (Tlbexp.exe) and pass the COM component as the filename parameter.C.Use Visual Studio.NET to add a reference to the COM component.D.Run the Assembly Registration tool (Regasm.exe) and pass the COM component as the filenameparameter.Answer: DExplanation: To register or unregister a.NET class with COM, you must run a command-line tool called theAssembly Registration Tool (Regasm.exe).Regasm.exe adds information about the class to the system registryso COM clients can use the.NET class transparently.Reference:.NET Framework Developer's Guide, Registering Assemblies with COM.NET Framework Tools,.NET Framework ToolsIncorrect AnswersA: Regsrv32 is not required in Visual Studio.NET.Regsrv32 was used for Visual Basic 6.0, and for VisualC++ 6.0 components.B: Tlbexp.exe generates a type library from a common language runtime assembly.Tlbexp.exe generates atype library but does not register it.This is in contrast to the Assembly Registration tool (Regasm.exe),Leading the way in IT testing and certification tools, www.testking.com- 85 - 070 - 310which both generates and registers a type library.To generate and register a type library with COM, useRegasm.exe.C: This is not enough to ensure interoperability.QUESTION NO: 85You are creating a serviced component that will perform several distributed transactions across differentdatabases.The serviced component will be called from managed and unmanaged client applications.You create a new class library project.You write code in the class modules to implement the logic.You want to detect and correct any registration errors before any client applications use the component.What should you do next?A.Assign a string name to the assembly.Compile the assembly.Run the.NET Services Installation tool (Regsvcs.exe) to add the component to Component Services.B.Run the Type Library Exporter (Tlbexp.exe) to export the definition for the assembly.C.Assign a string name for the assembly.Compile the assembly.Run the Global Assembly Cache tool (Gacutil.exe) to add the component to the global assembly cache.D.Use the Assembly Registration tool (Regasm.exe) to create entries in the registry that describe theassembly.Answer: AExplanation: The.NET Services Installation tool performs loads and registers an assembly, generates,registers, and installs a type library into a specified COM+ 1.0 application, and configures services that youhave added programmatically to your class.Reference:.NET Framework Tools,.NET Services Installation Tool (Regsvcs.exe)Incorrect AnswersB: The Type Library Exporter generates a type library that describes the types defined in a common languageruntime assembly.C: The Global Assembly Cache tool allows you to view and manipulate the contents of the global assemblycache and download cache.D: The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to theregistry, which allows COM clients to create.NET Framework classes transparently.QUESTION NO: 86You create an XML Web service that uses the Trace class to output error messages, warning messages,and informational messages to a log file.The service uses a TraceSwitch object to filter the trace output [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • anikol.xlx.pl