Permission.DocumentAuthor Property
Gets or sets the author of the current form as an e-mail address.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Property DocumentAuthor As String
Get
Set
'Usage
Dim instance As Permission
Dim value As String
value = instance.DocumentAuthor
instance.DocumentAuthor = value
string DocumentAuthor { get; set; }
Property Value
Type: System.String
The e-mail address of the author of the form.
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.
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)