User2 Interface

Definition

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.

public interface class User2 : Microsoft::Office::Interop::InfoPath::SemiTrust::User
[System.Runtime.InteropServices.Guid("096cd736-0786-11d1-95fa-0080c78ee3bb")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)]
public interface User2 : Microsoft.Office.Interop.InfoPath.SemiTrust.User
type User2 = interface
    interface User
Public Interface User2
Implements User
Attributes
Implements

Properties

LoginName

Gets the user's full credentials.

UserName

Gets only the user's username.

Methods

IsCurrentUser(String)

Returns true if the current user matches the specified user name.

IsUserMemberOf(String)

Returns a value that indicates whether the current user is a member of the specified group.

Applies to