AppDomain.CreateDomain Method (String)
Creates a new application domain with the specified name.
Assembly: mscorlib (in mscorlib.dll)
The friendlyName parameter is intended to identify the domain in a manner that is meaningful to humans. This string should be suitable for display in user interfaces.
This method overload uses the AppDomainSetup information from the default application domain.
The following sample demonstrates, in general, how to create a domain using one of the CreateDomain overloads.
' Set up the AppDomainSetup Dim setup As New AppDomainSetup() setup.ApplicationBase = "(some directory)" setup.ConfigurationFile = "(some file)" ' Set up the Evidence Dim baseEvidence As Evidence = AppDomain.CurrentDomain.Evidence Dim evidence As New Evidence(baseEvidence) evidence.AddAssembly("(some assembly)") evidence.AddHost("(some host)") ' Create the AppDomain Dim newDomain As AppDomain = AppDomain.CreateDomain("newDomain", evidence, setup)
Available since 1.1