Thursday, September 11, 2008
at
12:23 PM
Posted by
suresh
The stages to create a scope of application are as follows:
1. Create a new project of C# in visual studio .NET 2005, and choose the type of application of console project. Click on the CORRECT button.
2. On the window of code, type the following code:
using the system;
using System.Reflection;
This extract of code employs the namespaces system and of System.Reflection, which indicate that all classes and their methods, properties, and interfaces can be applied in the implementation code.
3. To create a field of new application, type the following code:
classify MyAppDomain
{
police force of vacuum of static head ()
{
Console.WriteLine ( to create a field of new application: );
Field of AppDomain = AppDomain.CreateDomain ( NewAppDomain );
Console.WriteLine ( application field of host centre is: +
AppDomain.CurrentDomain.FriendlyName);
}
}
This extract of code creates a class defined for the user called MyAppDomain. In the principal block of method, call the method of AppDomain.CreateDomain which creates a field of new application called NewAppDomain.
The property of AppDomain.CurrentDomain.FriendlyName is placed in order to seek the scope of application of host centre for the current wire. The property of FriendlyName of the class of AppDomain is placed to scan for the friendly name of the scope of application.
The friendly name of the scope of application is the name of the file of assembly which is employed to run in the field running of application. If the name of a file name of assembly is Assembly1.exe, the friendly name of the scope of application will be also Assembly1.exe.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment