Permission.PolicyName 属性

定义

获取应用于当前表单的策略的名称。

public:
 property System::String ^ PolicyName { System::String ^ get(); };
public string PolicyName { get; }
member this.PolicyName : string
Public ReadOnly Property PolicyName As String

属性值

策略的名称或默认值(如果未应用策略)。

示例

在以下示例中,将使用 PolicyName 属性显示已应用于当前表单的策略的说明。

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

注解

InfoPath 支持使用管理权限策略,这些策略列出用户和组及其表单权限。

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

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

适用于