Create AppDomain and Unload AppDomain : AppDomain « Development « VB.Net Tutorial






Imports System.Reflection

Public Class Tester
    Public Shared Sub Main
    
        Dim myAppDomain As AppDomain

        Try
            myAppDomain = AppDomain.CreateDomain("YourDomain")
            Console.WriteLine(myAppDomain.FriendlyName)
            AppDomain.Unload(myAppDomain)
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try
    End Sub

End Class
YourDomain








7.18.AppDomain
7.18.1.Create AppDomain and Unload AppDomain
7.18.2.Get current Domain
7.18.3.Get all assemblies in a domain
7.18.4.CurrentDomain.BaseDirectory()