System.Environment

Visual Basic .NET includes a class that provides information related to the current environment: System.Environment. This class encapsulates information that you used to have to obtain from different sources in previous versions of Visual Basic. For example, System.Environment can return the user’s System folder, which used to require an API call, as well as the current directory, which used to be obtained from the Common File Dialog control. Table 12-5 lists the most commonly called members of System.Environment. A number of the directives in this chapter rely on information supplied by System.Environment.

Table 12-5. Useful Members of System.Environment 
Member Description
CommandLine Returns the command line arguments ...

Get Practical Standards for Microsoft® Visual Basic® .NET, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.