_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::PermissionObject ^ Permission { Microsoft::Office::Interop::InfoPath::PermissionObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.PermissionObject Permission { get; }
member this.Permission : Microsoft.Office.Interop.InfoPath.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.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기