User members

Office 2013 and later

Provides properties and a method that can be used to return information about the current user of the form.

The User type exposes the following members.

  Name Description
Protected method User

  Name Description
Public property LoginName Gets the user's full credentials.
Public property UserName Gets only the user's username.

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IsCurrentUser Gets whether the specified user is the current user.
Public method IsUserMemberOf Gets whether the current user is a member of the specified group.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)