Edit

Share via


Permission.DocumentAuthor Property

Definition

Gets or sets the author of the current form as an e-mail address.

public:
 property System::String ^ DocumentAuthor { System::String ^ get(); void set(System::String ^ value); };
public string DocumentAuthor { get; set; }
member this.DocumentAuthor : string with get, set
Public Property DocumentAuthor As String

Property Value

The e-mail address of the author of the form.

Examples

In the following example, the DocumentAuthor property is used to display the e-mail address of the document author.

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisXDocument.UI.Alert(thisDoc.Permission.DocumentAuthor);
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisXDocument.UI.Alert(thisDoc.Permission.DocumentAuthor)

Remarks

The author of the form always has non-expiring owner rights to the form, whether the owner permission is granted explicitly through a UserPermission object or not.

Because the Permission object and its members are new to Microsoft InfoPath, you must cast the object returned by the thisXDocument variable to the _XDocument3 type to access this object and its members. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

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.

Applies to