Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
User Property

Application.User Property

Gets a reference to the User object.

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

public abstract User User { get; }

Property Value

Type: Microsoft.Office.InfoPath.User
A User that represents the current user.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

In the following example, the User property is used to retrieve the User object, and then the UserName property is used to display the current user's user name.

© 2015 Microsoft