Share via


User2 members

Include protected members
Include inherited members

This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, seeUserObject.

The User2 type exposes the following members.

Properties

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

Top

Methods

  Name Description
Public method IsCurrentUser(String) This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeUser2.IsCurrentUser. (Inherited from User.)
Public method IsCurrentUser(String) Returns true if the current user matches the specified user name.
Public method IsUserMemberOf(String) This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeUser2.IsUserMemberOf. (Inherited from User.)
Public method IsUserMemberOf(String) Returns a value that indicates whether the current user is a member of the specified group.

Top

See also

Reference

User2 interface

Microsoft.Office.Interop.InfoPath namespace