Provides properties, methods, and events related to the current application.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Gets the culture that the current thread uses for string manipulation and string formatting.
Gets an object that provides properties for getting information about the application's assembly, such as the version number, description, and so on.
Gets an object that provides properties and methods for writing event and exception information to the application's log listeners.
Gets the culture that the current thread uses for retrieving culture-specific resources.
Changes the culture used by the current thread for string manipulation and for string formatting.
Changes the culture that the current thread uses for retrieving culture-specific resources.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns the value of the specified environment variable.
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
The properties exposed by the My.Application object return data that is associated only with the current application or DLL. No system-level information can be altered with My.Application.
The My.Application object consists of the following classes:
This example uses the My.Application.GetEnvironmentVariable method to get and display the value of the PATH environment variable, if this value is available. Otherwise, it displays a message that indicates that the PATH environment variable does not exist.
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.