Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Application domain

swapkswapk Member Posts: 2
i want to understand the concept of Application domains in vb.net with suitable example/s
thank-you

Comments

  • JamesJames Member Posts: 217
    : i want to understand the concept of Application domains in vb.net with suitable example/s
    : thank-you
    :
    :
    Basically the concept is that you can create an area in memory for your application (VS does this for your program automatically). It is managed and kept from being directly accessed by any other program within its own virtual area.

    If your in your own program, you can reference your own domain or creat a sub domain that is safe. The idea is that you can run more than one program within your program and it will be safe and effecient.


    [code]Class AppDomain1
    Public Shared Sub Main()
    Console.WriteLine("Creating new AppDomain.")
    Dim domain As AppDomain = AppDomain.CreateDomain("MyDomain")

    Console.WriteLine(("Host domain: " + AppDomain.CurrentDomain.FriendlyName))
    Console.WriteLine(("child domain: " + domain.FriendlyName))
    End Sub 'Main
    End Class 'AppDomain1[/code]
  • pankajmkpankajmk Member Posts: 7
    : i want to understand the concept of Application domains in vb.net
    : with suitable example/s
    : thank-you
    :
    :


    Refer this article

    http://dotnetspark.com/kb/148-application-domain.aspx

    regards
    http://dotnetspark.com
Sign In or Register to comment.