Click or drag to resize

UserInformation Properties

The UserInformation type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAccountPicture
Gets the account picture for the user.
Public propertyStatic memberCurrentUser
Gets the current user
Public propertyStatic memberDisplayName
Gets the display name for the user account.
Public propertyStatic memberDomainName
Gets the domain name for the user.
Public propertyStatic memberEmailAddress
Gets the user's email address.
Public propertyStatic memberFirstName
Gets the user's first name.
Public propertyStatic memberHomeDirectory
Gets the user's home directory.
Public propertyStatic memberIsCurrentUserAnAdministrator
Tests whether the current user is an elevated administrator.
Public propertyStatic memberIsLocalAccount
Gets a value that indicates if the user account is local or domain.

Returns true if the account is a local account, otherwise false

Public propertyStatic memberIsLockedOut
Gets a value that indicates if the user is locked out or not
Public propertyStatic memberLastName
Gets the user's last name.
Public propertyStatic memberPrincipalName
Gets the principal name for the user. This name is the User Principal Name (typically the user's address, although this is not always true.)
Public propertyStatic memberTelephoneNumber
Gets the telephone number of the user
Public propertyStatic memberUserName
Gets the user name of the user.
Public propertyStatic memberWTSClientName
Gets a the user's Windows Terminal Service's client name. The value will fallback to MachineName if there is no client name available.
Top
See Also