UIApplication.Main 메서드

정의

오버로드

Main(String[])

지정된 명령줄 매개 변수를 사용하여 기본 애플리케이션 루프를 시작합니다.

Main(String[], String, String)

지정된 명령줄 매개 변수를 사용하여 기본 애플리케이션 루프를 시작합니다.

Main(String[], Type, Type)

지정된 명령줄 매개 변수를 사용하여 기본 애플리케이션 루프를 시작합니다.

Main(String[])

지정된 명령줄 매개 변수를 사용하여 기본 애플리케이션 루프를 시작합니다.

public static void Main (string[] args);
static member Main : string[] -> unit

매개 변수

args
String[]

Main 프로그램의 명령줄 매개 변수입니다.

설명

그러면 주 애플리케이션 루프가 시작되고, 기본 애플리케이션 클래스가 UIApplication이라고 가정하고, 이 프로그램의 기본 NIB 파일에 지정된 UIApplicationDelegate 인스턴스를 사용합니다.

적용 대상

Main(String[], String, String)

지정된 명령줄 매개 변수를 사용하여 기본 애플리케이션 루프를 시작합니다.

public static void Main (string[] args, string principalClassName, string delegateClassName);
static member Main : string[] * string * string -> unit

매개 변수

args
String[]

Main 프로그램의 명령줄 매개 변수입니다.

principalClassName
String

기본 애플리케이션 클래스의 이름입니다. null을 지정하면 UIApplication이 사용됩니다.

delegateClassName
String

null인 경우 UIApplicationDelegate 클래스의 이름은 이 프로그램의 기본 NIB 파일에 지정된 UIApplicationDelegate 인스턴스를 사용합니다.

설명

principalClassName 은 일반적으로 애플리케이션 개발자가 다음 예제와 같이 를 서브클래스하는 UIApplication경우에만 지정됩니다.

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...
}

적용 대상

Main(String[], Type, Type)

지정된 명령줄 매개 변수를 사용하여 기본 애플리케이션 루프를 시작합니다.

public static void Main (string[] args, Type principalClass, Type delegateClass);
static member Main : string[] * Type * Type -> unit

매개 변수

args
String[]

Main 프로그램의 명령줄 매개 변수입니다.

principalClass
Type

기본 애플리케이션 클래스의 형식입니다. null을 지정하면 UIApplication이 사용됩니다.

delegateClass
Type

UIApplicationDelegate 클래스의 형식이며 null이면 이 프로그램의 기본 NIB 파일에 지정된 UIApplicationDelegate 인스턴스를 사용합니다.

설명

principalClassName 은 일반적으로 애플리케이션 개발자가 다음 예제와 같이 를 서브클래스하는 UIApplication경우에만 지정됩니다.

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

public class MyApp : UIApplication
{
//...etc...
}          

public class MyAppDelegate : UIApplicationDelegate
{
//..etc...
}

적용 대상