Friday, September 10th, 2010
C# Application Domains & Services

Which command would you use to close the application domain?

Which command would you use to close the application domain in the following code sample?AppDomain d = AppDomain.CreateDomain("New Domain"); d.ExecuteAssemblyByName("MyAssembly");A. d.DomainUnload() B. d = null C. d.Unload() D. AppDomain.Unload(d)To unload ...

More C# Application Domains & Services

Which of the following are valid ways to run an assembly within an application domain?

Which of the following are valid ways to run an assembly within an application domain? A. AppDomain.CreateDomain B. AppDomain.ExecuteAssembly C. AppDomain.ExecuteAssemblyByName D. AppDomain.ApplicationIdentityYou can use ...

Which of the following are valid reasons to create an application domain?

Which of the following are valid reasons to create an application domain? A. It is the only way to start a separate ...

How to Unload an Application Domain in C#

To unload a domain and any assemblies within the domain, call the static AppDomain.Unload method.AppDomain d = AppDomain.CreateDomain("NewDomain"); AppDomain.Unload(d);Note: Individual assemblies or ...

How to Load Assemblies in an Application Domain in C#

We can simply create an instance of the System.AppDomain class with a friendly name, and then calling the ExecuteAssembly method on ...

How to Create an Application Domain in C#

To create an application domain, we should call the AppDomain.CreateDomain method. We must provide a name for the new application domain.AppDomain ...

eXTReMe Tracker