UserObject interface

Provides methods that can be used to return information about the current user.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
<GuidAttribute("096cd6bc-0786-11d1-95fa-0080c78ee3bb")> _
Public Interface UserObject _
    Inherits User
'Usage
Dim instance As UserObject
[GuidAttribute("096cd6bc-0786-11d1-95fa-0080c78ee3bb")]
public interface UserObject : User

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 Microsoft.Office.Interop.InfoPath.SemiTrust Members That Are Not Compatible with InfoPath 2003.

The UserObject object is accessed through the User property of the Application object.

See also

Reference

UserObject members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace