/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_CLR/ADApplicationBase/VB/source2.vb
22 строки
805 B
Andy De George
Move snippets from samples repo to this repo (#17296)
03 мар 2020, 19:23
Не верифицирован
03 мар 2020, 19:23
dbbeda1
Код
Авторство
О чём код?
' <snippet2> Imports System.Reflection Class AppDomain4 Public Shared Sub Main() ' Create application domain setup information. Dim domaininfo As new AppDomainSetup() domaininfo.ApplicationBase = "f:\work\development\latest" ' Create the application domain. Dim domain As AppDomain = AppDomain.CreateDomain("MyDomain", Nothing, domaininfo) ' Write application domain information to the console. Console.WriteLine("Host domain: " + AppDomain.CurrentDomain.FriendlyName) Console.WriteLine("child domain: " + domain.FriendlyName) Console.WriteLine("Application base is: " + domain.SetupInformation.ApplicationBase) ' Unload the application domain. AppDomain.Unload(domain) End Sub End Class ' </snippet2>