Bagikan melalui


My.Application.ApplicationContext Property

Gets the ApplicationContext object for the current thread of a Windows Forms application.

' Usage
Dim value As System.Windows.Forms.ApplicationContext = My.Application.ApplicationContext
' Declaration
Public ReadOnly Property ApplicationContext As System.Windows.Forms.ApplicationContext

Property Value

This property returns the ApplicationContext object for the current thread. That object contains contextual information about the thread.

Remarks

This is an advanced member; it does not appear in IntelliSense unless you click the All tab.

Requirements

Namespace:Microsoft.VisualBasic.ApplicationServices

Class:WindowsFormsApplicationBase

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Availability by Project Type

Project type

Available

Windows Application

Yes

Class Library

No

Console Application

No

Windows Control Library

No

Web Control Library

No

Windows Service

No

Web Site

No

Permissions

No permissions are required.

See Also

Reference

My.Application Object

System.Windows.Forms.ApplicationContext

WindowsFormsApplicationBase.ApplicationContext