UIKit.UIApplication.Main Method
Launches the main application loop with the given command line parameters.

Syntax

public static void Main (string[] args, string principalClassName, string delegateClassName)

Parameters

args
Command line parameters from the Main program.
principalClassName
The name of the main application class, if you specify null, this uses UIApplication.
delegateClassName
The name of the UIApplicationDelegate class, if null, it uses the UIApplicationDelegate instance specified in the main NIB file for this program..

Remarks

The principalClassName is typically only specified if the application developer subclasses UIKit.UIApplication, as shown in the following example:

C# Example

public class Application
{
	static void Main(string[] args)
	{
		UIApplication.Main(args, "MyApp", "MyAppDelegate");
	}
}

[Register("MyApp")]
public class MyApp : UIApplication
{
//...etc...
}          

[Register("MyAppDelegate")]
public  class AppDelegate : UIApplicationDelegate
{
//..etc...
}
              

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0