WindowsFormsApplicationBase.Run Method (String[])

 

Sets up and starts the Visual Basic Application model.

Namespace:   Microsoft.VisualBasic.ApplicationServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public void Run(
	string[] commandLine
)

Parameters

commandLine
Type: System.String[]

Array of type String. The command line from Sub Main.

The My.Application.Run method provides support for the Visual Basic Application model. This method should be called only from the application's Sub Main. By default, the Sub Main of a Windows Forms application calls this method. For more information, see Overview of the Visual Basic Application Model.

Project type

Available

Windows Forms Application

Yes

Class Library

No

Console Application

No

Windows Forms Control Library

No

Web Control Library

No

Windows Service

No

Web Site

No

EnvironmentPermission

Controls the ability to access all environment variables. Associated enumeration: Unrestricted.

FileIOPermission

Controls the ability to access files and folders. Associated enumeration: Unrestricted.

RegistryPermission

Controls the ability to access registry variables. Associated enumeration: Unrestricted.

UIPermission

Controls the permissions related to user interfaces and the Clipboard. Associated enumeration: AllWindows.

WebPermission

Controls rights to access HTTP Internet resources. Associated enumeration: Unrestricted.

SocketPermission

Controls rights to make or accept connections on a transport address. Associated enumeration: Unrestricted.

PerformanceCounterPermission

Controls access to a Windows NT performance counter component. Associated enumeration: Unrestricted.

.NET Framework
Available since 2.0
Return to top
Show: