Posted by & filed under Visual Studio.

One of the new features in Visual Basic 2005, called My, provides access to commonly used functionality provided by the .NET Framework. The top-level members of My are exposed as objects. The three central objects that provide access to information and commonly used functionality are My.Application object, My.Computer object, and My.User object. You can use these objects to access information that is related to the current application, the computer that the application is installed on, or the current user of the application, respectively. Some of the objects and its related applications are:

  • The My.Computer.clipboard object provides easy access for reading from and writing to the clipboard, clearing it and determining what type of data is stored on it.

  • The My.Computer.filesystem object provides file access methods and properties which simplify file I/O.

  • The My.Computer.network object provides methods and properties for uploading and downloading files, checking connection status and determining whether remote computers are available.

Also, the My.WebServices object provides an instance of each Web service referenced by the current project and is instantiated on demand. You can access these Web services through the properties of the My.WebServices object.

 

From: Microsoft

Comments are closed.