Appendix S. The My Namespace
The My namespace provides shortcuts to make performing common tasks easier. The following sections describe the major items within the My namespace and describe the tools that they make available.
My.Application
My.Application provides information about the current application. It includes properties that tell you the program's current directory, culture, Log object, and splash screen. It also includes information about the application's assembly, including the program's version numbering.
The following table describes the most useful My.Application properties, methods, and events.
Item | Purpose |
|---|---|
| Returns an |
| Changes the thread's culture used for string manipulation and formatting. |
| Changes the thread's culture used for retrieving resources. |
| Returns a collection containing the command-line argument strings used when the application was started. The first entry (with index 0) is the fully qualified name of the executable application. |
| Returns a |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access