次の方法で共有


_XDocument4.Permission プロパティ

定義

フォームに関連付けられているオブジェクトへの PermissionObject 参照を取得します。

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

プロパティ値

フォームの PermissionObject Information Rights Management (IRM) アクセス許可設定を表す オブジェクト。

実装

次の例では、 Permission プロパティを使用して現在のフォームの PermissionObject オブジェクトを取得し、 プロパティを Enabled 使用して、現在のフォームに対してアクセス許可設定が有効になっているかどうかを表示します。

_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())

次の例では、 Permission プロパティを使用して現在のフォームの PermissionObject オブジェクトを取得し、 プロパティを Enabled 使用して、現在のフォームに対してアクセス許可設定が有効になっているかどうかを表示します。

_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())

注釈

PermissionObject オブジェクトへの参照が返された後、その参照を使用して、作業中のフォームに対するアクセス許可を制限できます。また、フォーム内のデータを編集、コピー、または印刷できるかどうかなど、特定のアクセス許可の設定を取得または設定することもできます。

適用対象