Skip to Main Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced content levelIntermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

My.User

My.User is a property that allows getting information on the user who logged in to the Windows operating system and that is running the application. Such a property is of type Microsoft.VisualBasic.ApplicationServices.User and is a wrapper of this last mentioned one, meaning that you can invoke both and obtain the same results. Utilizing My.User is straightforward because it offers just a few but easy-to-understand members, as summarized in Table 19.2.

Image

TABLE 19.2 My.User Members

Listing 19.1 shows how you can get information on the current user that runs the application. Notice how an invocation to InitializeWithWindowsUser is required ...

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.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book