My.User


My.User returns information about the current user. The following table describes the Screen object’s most useful properties.

Open table as spreadsheet

Property or Method

Purpose

CurrentPrincipal

Gets or sets an IPrincipal object used for role-based security.

InitializeWithWindowsUser

Sets the thread’s principal to the Windows user who started it.

IsAuthenticated

Returns True if the user’s identity has been authenticated.

IsInRole

Returns True if the user belongs to a certain role.

Name

Returns the current user’s name in the format domain\user_name.




Visual Basic 2005 with  .NET 3.0 Programmer's Reference
Visual Basic 2005 with .NET 3.0 Programmer's Reference
ISBN: 470137053
EAN: N/A
Year: 2007
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net