Share via


Permission.PolicyName property

Gets the name of the policy that was applied to the current form.

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

Syntax

'Declaration
ReadOnly Property PolicyName As String
    Get
'Usage
Dim instance As Permission
Dim value As String

value = instance.PolicyName
string PolicyName { get; }

Property value

Type: System.String
The name of the policy or a default value if no policy was applied.

Remarks

InfoPath supports the use of administrative permission policies which list users and groups and their form permissions.

Examples

In the following example, the PolicyName property is used to display the description of the policy that was applied to the current form.

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

See also

Reference

Permission interface

Permission members

Microsoft.Office.Interop.InfoPath namespace