UserObject Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides methods that can be used to return information about the current user.
public interface class UserObject : Microsoft::Office::Interop::InfoPath::SemiTrust::User
[System.Runtime.InteropServices.Guid("096cd6bc-0786-11d1-95fa-0080c78ee3bb")]
public interface UserObject : Microsoft.Office.Interop.InfoPath.SemiTrust.User
type UserObject = interface
interface User
Public Interface UserObject
Implements User
- Attributes
- Implements
Remarks
This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeUser.
Using the members of the User interface provides compatibility with InfoPath 2003. To use new members that were added to the User2 object model in Microsoft InfoPath 2010, you must cast the object returned by the User property of the Application object. to the User2 type. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.
The UserObject object is accessed through the User property of the Application object.
Methods
IsCurrentUser(String) |
Returns true if the current user matches the specified user name. (Inherited from User) |
IsUserMemberOf(String) |
Returns a value that indicates whether the current user is a member of the specified group. (Inherited from User) |