What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 application class library and decide to use the AppDomainSetup class to create an application domain.
You are required to create an instance of a type named BillSpace.BillType.
You are additionally required to configure the new application domain so that it probes for the assembly containing the type in a specified directory.
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 application class library and decide to use the AppDomainSetup class to create an application domain.
You are required to create an instance of a type named BillSpace.BillType.
You are additionally required to configure the new application domain so that it probes for the assembly containing the type in a specified directory.
What should you do?

A.
The ApplicationBase property of the AppDomainSetup class should be used.

B.
The ActivationArguments property of the AppDomainSetup class should be used.

C.
The CachePath property of the AppDomainSetup class should be used.

D.
The AppDomainInitializerArguments property of the AppDomainSetup class should be used.

Explanation:
It is possible to provide the common language runtime with configuration information for a new application domain using the AppDomainSetup class. The most important property is the ApplicationBase when creating your own
application domains which is used to define the root directory of the application.
Incorrect Answers:
B: This method is incorrect and should not be used because it sets or gets data about activation of an application domain.
C: This method is incorrect and should not be used because it sets or gets the name of an area specific to the application where files are shadow copied.
D: This method is incorrect and should not be used because it sets or gets AppDomainInitializer delegate which represents a callback method.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


networkmanagers

networkmanagers

I agree with the answer. A