You need to write a code segment that will create a common language runtime (CLR) unit of isolation within an application. Which code segment should you use?

You need to write a code segment that will create a common language runtime (CLR) unit of
isolation within an application. Which code segment should you use?

A. AppDomainSetup^ mySetup =
    AppDomain::CurrentDomain::SetuupInformation;mySetup->ShadowCopyFiles = “true”;
B. System::Diagnostics::Process^ myProcess;myProcess = gcnew     
    System::Diagnostics::Process();
C. AppDomain^ domain; domain = AppDomain::CreateDomain(“BraindumpsDomain”);
D. System::ComponentModel::Component^ myComponent;myComponent = gcnew 
    System::ComponentModel::Component();

Answer: C
 






No comments:

Post a Comment