User2 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 following tables list the members exposed by the User2 type.
Public Properties
Name | Description | |
---|---|---|
LoginName | Gets the user's full credentials. | |
UserName | Gets only the user's username. |
Top
Public Methods
Name | Description | |
---|---|---|
IsCurrentUser | Returns true if the current user matches the specified user name. | |
IsUserMemberOf | Returns a value that indicates whether the current user is a member of the specified group. |
Top