Permission.DocumentAuthor 属性

定义

获取或设置当前表单作者的电子邮件地址。

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

属性值

表单作者的电子邮件地址。

示例

在以下示例中,将使用 DocumentAuthor 属性显示文档作者的电子邮件地址。

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

注解

无论所有者权限是否通过 UserPermission 对象显式授予,窗体的作者始终对表单拥有未过期的所有者权限。

由于 Permission 对象及其成员对 Microsoft InfoPath 不熟悉,因此必须将 thisXDocument 变量返回的对象强制转换为 _XDocument3 类型才能访问此对象及其成员。 有关详细信息,请参阅如何:使用与 InfoPath 2003 不兼容的对象模型成员。

此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。

适用于