Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

InitializeWithWindowsUser Method

Location

My.User.InitializeWithWindowsUser

Syntax

My.User.InitializeWithWindowsUser( )

Description

The My.User object generally refers to the user that owns the current execution thread. The InitializeWithWindowsUser method resets the My.User object to the user that started the application.

Usage at a Glance

  • While this method will work in ASP.NET applications, its use has no true impact on the My.User object.

Related Framework Entries

  • Microsoft.VisualBasic.ApplicationServices.User.InitializeWithWindowsUser Method

  • Microsoft.VisualBasic.ApplicationServices.WebUser.InitializeWithWindowsUser Method

See Also

CurrentPrincipal Property, IsAuthenticated Property, IsInRole Method, Name Property (My.User), User Object

Категории