_XDocument4.Permission Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a reference to a PermissionObject object associated with the form.
public:
property Microsoft::Office::Interop::InfoPath::SemiTrust::PermissionObject ^ Permission { Microsoft::Office::Interop::InfoPath::SemiTrust::PermissionObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.PermissionObject Permission { get; }
member this.Permission : Microsoft.Office.Interop.InfoPath.SemiTrust.PermissionObject
Public ReadOnly Property Permission As PermissionObject
Property Value
A PermissionObject object that represents the Information Rights Management (IRM) permission settings for the form.
Implements
Examples
In the following example, the Permission property to return a PermissionObject object for the current form, which then uses the Enabled property to display whether permission settings are enabled for the current form.
_XDocument4 thisDoc = (_XDocument4)thisXDocument;
thisXDocument.UI.Alert(
thisDoc.Permission.Enabled.ToString());
Dim thisDoc As _XDocument4 = _
DirectCast(thisXDocument, _XDocument4)
thisXDocument.UI.Alert(
thisDoc.Permission.Enabled.ToString())
In the following example, the Permission property to return a PermissionObject object for the current form, which then uses the Enabled property to display whether permission settings are enabled for the current form.
_XDocument4 thisDoc = (_XDocument4)thisXDocument;
thisXDocument.UI.Alert(
thisDoc.Permission.Enabled.ToString());
Dim thisDoc As _XDocument4 = _
DirectCast(thisXDocument, _XDocument4)
thisXDocument.UI.Alert(
thisDoc.Permission.Enabled.ToString())
Remarks
After a reference to the PermissionObject object is returned, it can be used to restrict permissions to the active form and to return or set specific permissions settings, such as whether data in the form can be edited, copied, or printed.
Because the Permission property is new to Microsoft Office InfoPath 2007, you must declare and cast to the _XDocument4 type to access this property. 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for